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

Error Timeout #366

Open
MarceloRab opened this issue Feb 24, 2024 · 7 comments
Open

Error Timeout #366

MarceloRab opened this issue Feb 24, 2024 · 7 comments
Labels

Comments

@MarceloRab
Copy link

MarceloRab commented Feb 24, 2024

I've been trying for 8 hours and nothing. πŸ˜’. Web app on localHost and Android works perfectly.

Only on flutter web (Chrome) and with server it doesn't work..❗

Fluttter Web Site = > https://.... (Vercel)
Server = > https://... (Render)

My versions.
Flutter 3.19.0
Dart 3.3.0
socket_io_client 2.0.3+1

All these measures did not work.

  1. Downgrade Socket.io node from 4.7.4 => 4.6.2. πŸ‘‰ Doesn't work

  2. Flutter = >

IO.io(socketUrl, <String, dynamic>{ 'autoConnect': false, 'transports': ['websocket'], 'rejectUnauthorized': false, 'withCredentials': false, });

πŸ‘‰ Doesn't work

  1. Node Server = >

this.io = new socketIo.Server(this.server, { colors: { origin: [ ''my_cors", //"*", ], credentials: false,

πŸ‘‰ Doesn't work

Error thrown β–Ά timeout in all states.

@jumperchen
Copy link
Member

Could you please try this v3.0.0-beta.0, and see if it solves your problem?
Fyi, from the previous test on v3.0.0-beta.0, it worked well on Node Server v4.7.4 version with Dart Web.

@MarceloRab
Copy link
Author

@jumperchen

Unfortunately it has the same result. Doesn't make the connection. πŸ˜₯

Could it be due to the lack of key, cert.pem?

@jumperchen
Copy link
Member

@MarceloRab
It could be more like a configuration issue, rather than the library issue.

@MarceloRab
Copy link
Author

@jumperchen

unfortunately, πŸ˜₯, I couldn't find an example of Flutter web with socket client and server in production. Using https.

@jumperchen
Copy link
Member

This could help, and it works for me on self signing certificate at LocalHost.

@MarceloRab
Copy link
Author

I ended up moving my project to Firebase with streams.

@kjxbyz
Copy link

kjxbyz commented Mar 10, 2024

node

socket.io: ^4.7.4

flutter

The local environment runs normally, but an error occurs after deploying to render.

flutter: 3.19.3
socket_io_client: ^2.0.3+1

2024-03-10 19 47 15

next

It work normal.

next: ^14.1.3
socket.io-client: ^4.7.4

[EDIT]

socket_io_client is upgraded to 3.0.0-beta.1, the flutter code works normally.

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

No branches or pull requests

3 participants