Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware Error #80

Open
BurakOgutken opened this issue Oct 15, 2024 · 2 comments
Open

Middleware Error #80

BurakOgutken opened this issue Oct 15, 2024 · 2 comments

Comments

@BurakOgutken
Copy link

First of all, great job on the OCPP backend software you've created. We are trying to integrate our station software with your backend, but intermittently, we are encountering the error I shared below on the middleware side. We haven't been able to understand the cause. Could you help us figure it out?

 Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HN7D91NRVPPK", Request id "0HN7D91NRVPPK:00000001": An unhandled exception was thrown by the application.
      System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived, CloseSent'
         at System.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
         at System.Net.WebSockets.ManagedWebSocket.CloseAsync(WebSocketCloseStatus closeStatus, String statusDescription, CancellationToken cancellationToken)
@dallmann-consulting
Copy link
Owner

It doesn't seem related to OCPP.Core but to websockets in general. You can google it yourself...
The websocket specification names some scenarios how connections come to an aborted state:
https://datatracker.ietf.org/doc/html/rfc6455

@dallmann-consulting
Copy link
Owner

Did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants