-
Notifications
You must be signed in to change notification settings - Fork 345
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
[BUG] - Websockets implementation is broken when using API_KEY #563
Comments
Have you tried in develop? A few days ago I added a ws exception in case two connections are opened with the same user id |
Yes I tried the The error changed in the logs:
But the buggy behaviour is exactly the same. |
Ok then it seems that the old websocket connection is not closed with the page refresh, so that the core refuse the new connection, can you check if after the refresh the in the cat's logs appears
before (not necessarily in the previous line)
Thanks |
Here the log snippet:
|
Cannot reproduce this error anymore |
Describe the bug
The current Websockets implementation is broken when using
API_KEY
, it has issues accepting a broken trying to reconnect.The core container prints this error message:
To Reproduce
Steps to reproduce the behavior:
API_KEY
/admin
path and start using the cat (enter theAPI_KEY
when prompted by the web interface)API_KEY
again in the pop-up window.Additional context
I suspect here you can't just return and ignore a new connection:
core/core/cat/routes/websocket.py
Lines 83 to 94 in 0185e24
The text was updated successfully, but these errors were encountered: