Replies: 10 comments 33 replies
-
Please provide details and code so that I can see the issue here. |
Beta Was this translation helpful? Give feedback.
-
sorry for getting back late. The issue is that whenever i have a deployment of the backend flask server, the python-socketio clients get disconnected and are not able to reconnect later. This seems to only happen to AWS deployment, using a load balancer. I am using Nginx, not sure it is reproducible in other load balancer settings. This does not happen when i run with localhost. Suspect it is a load balancer setup issue. Using flask socketio 5.5.1, python-socketio 5.13.0 basic client setup:
Nginx config
|
Beta Was this translation helpful? Give feedback.
-
I turned on the EngineIO logs on the client side. This is what i got that caused the issue at the end. |
Beta Was this translation helpful? Give feedback.
-
I have multiple entities interacting with my backend, I am still trying to get the logs for my specific client, but on a high level, in the connect handler, my server emits an event, that requires the client to ack back for a cryptographic challenge. And this is a 4 way communication. Server would need to emit again and wait for another callback from client. I noticed that the packet headers are all "CONNECT" during those communications. Is this what causes the problem? I do see that in |
Beta Was this translation helpful? Give feedback.
-
looks sth like this for setting up the connection |
Beta Was this translation helpful? Give feedback.
-
Ok. i was able to create a sample application to reproduce this exact error. Here you go. This is the client log
|
Beta Was this translation helpful? Give feedback.
-
Client program
|
Beta Was this translation helpful? Give feedback.
-
Server Program:
|
Beta Was this translation helpful? Give feedback.
-
I ran |
Beta Was this translation helpful? Give feedback.
-
@Joe-ChenZ If you'd like to give my candidate fix a try, it is in this PR: miguelgrinberg/python-engineio#415. Note that this is for python-engineio, which is a dependency of this package. No direct changes are required in this package. If you give it a try, let me know if it helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Have been having some issues with client trying to reconnect to the flask socketio server. Client is using python socketio. Internet is stable. Client tries to connect every 10s. Transport method is websocket. Reconnection is enabled too. There is no CORS issue. Error I got is transport error.
Beta Was this translation helpful? Give feedback.
All reactions