transitive-bullshit / bing-chat

Node.js client for Bing's new AI-powered search. It's like ChatGPT on steroids 🔥
MIT License
1.22k stars 128 forks source link

Request from Server at United States Datacenter #61

Open rudrajyotibhattacharya opened 10 months ago

rudrajyotibhattacharya commented 10 months ago

Hi All, Has anyone faced the following error while running bing-chat (bing-chat-rnz) code from a server located in the United States? I am getting the following error.

WebSocket error: Error: Unexpected server response: 200

rudrajyotibhattacharya commented 10 months ago

I am not sure though it is because of the datacenter location but works fine from india and uk

rudrajyotibhattacharya commented 10 months ago

The problematic server never receives a call back for websocket.on("upgrade") function, instead calls back on("response"), which is a 200 status http response, whereas 101 is required....