Nodejs + ( Socket.IO, Express 5.0 ) behing Nginx ( SSL ) -> Only Android/Ios Socket.IO gives -> xhr polling request "canceled" #4776
Replies: 1 comment
-
Oh my god Fixed by adding in nginx config instead of This fullchain should be generated if you use lets encrypt. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a docker compose with 4 containers:
Nodejs Container listens on port 5001 internally and is listening using Express and Socket.IO. ( Code will be provided below).
I have two namespaces for socket.io /users and /videochat
The strange thing is that if you connect from PC ( Windows, MacOs, Linux ) any browser, connection is established succesfully.
But only from Android/Ios application, socket.io cannot connect. Using usb-debugging and watching requests in "chrome://inspect#devices" (Network Tab). I saw following request error:
UPDATED. I got error log from Android App, please do someone understand why ?
2023-07-25 14:37:30.426 9286-9482/com.myapp.app E/chromium: [ERROR:ssl_client_socket_impl.cc(978)] handshake failed; returned -1, SSL error code 1, net_error -202
Socket client are connecting to URL: "https://mydomain.com/users"
Beta Was this translation helpful? Give feedback.
All reactions