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

WebSocketException: Connection to 'APIURL:0/socket.io/?EIO=4&transport=websocket#' was not upgraded to websocket #377

Closed
talha-veroke opened this issue Apr 5, 2024 · 4 comments

Comments

@talha-veroke
Copy link

Having this issue, While using this package.

IO.Socket socket = IO.io( APIConfiguration.SocketUrl, OptionBuilder() .setTransports(['websocket']) .disableAutoConnect() .setReconnectionAttempts(2) .setExtraHeaders({ 'access_token': await StorageService().readString(Keys.Auth_Token), }) .build(), ); socket.connect(); socket.onConnect((data) => print('connected')); socket.onConnectError((data) => print('error $data'));

@Abdulah-butt
Copy link

getting same issue. Did you get it?

@LeandreBl
Copy link

If you really want to access "APIURL:0/socket.io/?EIO=4&transport=websocket#", then you have a problem somewhere, as "0" is not a valid port, it might be the problem here.

@ROD-MASAMI
Copy link

i have the same problem i used my server_Url without specifiying any port but the package appended the ':0/socket.io/' how do i remove that i tried specifying the port in my url but it doesnt change

@talha-veroke
Copy link
Author

My issue was resolved, it was some configuration issue on server side and our devops team resolved it.

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

5 participants