-
-
Notifications
You must be signed in to change notification settings - Fork 129
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: WebSocket error: Error: Unexpected server response: 200 #49
Comments
It is working perfectly fine on my PC but when i try to run it on my ubuntu server, it shows this error. |
Same for me. Deployed in Heroku. Got the same error. |
@ShreshthTiwari @debotos Did any of you figure out on how to solve this? I get the following error:
|
Same error on my end from my mac :( |
Friend of mine can run it from PC as well, but no dice on mac |
TLDR; check your proxy and VPN settings. Maybe you're not allowing inbounds into your VPCs or similar security concerns Ah, I figured it out! I was on my VPN. Unsure how my VPN settings were messing up the websocket connection, but for some reason, when I enter the VPN, I get HTTP 200 instead of HTTP 101 (switching protocols). Likely something in the VPN settings |
But my pc or Ubuntu server is not connected to any vpn. |
Is your ubuntu server in an AWS VPC or similar? Could be a different networking issue |
No, it is a hetzner node with all networks configured properly. |
Got the same error on mac, didn't use VPN or something else configured about networks.
|
I'm still not able to run this in prod. Only works on localhost. Tried multiple VPS providers, all have the same problem. It's clear it has nothing todo with VPN's or network. Something is buggy in the module |
If you set the
As pointed by this issue to bypass the CAPTCHA promt you have to supply the client with valid _U cookie. Be aware that edge browser refresh the cookie and you have to change it frequently. |
Tried running it on Digital Ocean, but the same issue as well, looks like we can only use it on our own machine at home where the websocket connection is coming from a genuine source and does not trigger the captcha. |
Same for me - working on local machine, but when deploying to Oracle VM, it gets that error message. Any solutions? |
Same for me on AWS. |
Something that just came up to my mind is that this error might be related to the server configuration where you are hosting your code. If anyone discover a way to fix this, please respond to this topic! |
Error: WebSocket error: Error: Unexpected server response: 200
at WebSocket. (file:///home/container/node_modules/bing-chat/build/index.js:83:20)
at WebSocket.emit (node:events:513:28)
at emitErrorAndClose (/home/container/node_modules/ws/lib/websocket.js:1008:13)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
The text was updated successfully, but these errors were encountered: