Skip to content

Invalid StartTransaction causes Transactions Page to Error #1609

@brandonprry

Description

@brandonprry

Checklist

  • I checked other issues already, but found no answer/solution
  • I checked the documentation and wiki, but found no answer/solution
  • I am running the latest version and the issue still occurs
  • I am sure that this issue is about SteVe (and not about the charging station software or something unrelated to SteVe)

Specifications

SteVe Version     : Version:	3.8.0-SNAPSHOT
Operating system  : Docker/OSX
JDK               : Docker/OSX
Database          : MariaDB

Expected Behavior

Page doesn't crash.

Actual Behavior

Page crashes.

image

Steps to Reproduce the Problem

  1. Create a ChargePoint with an ID of 1
  2. Send the following StartTransaction OCPP message
echo '[2, "dddb2599-d678-4ff8-bf38-a230390a1200", "StartTransaction", {"connectorId": 42, "meterStart": 42, "idTag": "some id", "timestamp": "222222017-10-27T19:10:11Z"}]'|websocat -H="Sec-WebSocket-Protocol:ocpp1.6" ws://localhost:8180/steve/websocket/CentralSystemService/1

This is the response I got back, which seems fine.

[3,"dddb2599-d678-4ff8-bf38-a230390a1200",{"transactionId":1,"idTagInfo":{"status":"Invalid"}}]
  1. Check the Transactions page, it should have a stack trace.

Additional context

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions