Currently in the (Endpoint).ParseMessage() fun there are several type cast checks in place. However for CALL_ERROR message types there is no type case check for error code thus allowing for a runtime panic. This pull request resolve this issue and returns a conventional error message.
https://github.com/lorenzodonini/ocpp-go/issues/173
Currently in the (Endpoint).ParseMessage() fun there are several type cast checks in place. However for CALL_ERROR message types there is no type case check for error code thus allowing for a runtime panic. This pull request resolve this issue and returns a conventional error message.