websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200
Is there an existing issue for this?
- I have searched the existing issues and checked the recent builds/commits
What would your feature do ?
I had the same problem. https://github.com/acheong08/EdgeGPT/issues/584
Logs:
Traceback (most recent call last): File "/Users/yehebin/work/baidu/personal-code/yehebin-tools/test/test_gpt.py", line 29, in <module> asyncio.run(main()) File "/Users/yehebin/program/miniforge3/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Users/yehebin/program/miniforge3/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Users/yehebin/work/baidu/personal-code/yehebin-tools/test/test_gpt.py", line 11, in main response = await bot.ask( File "/Users/yehebin/program/miniforge3/lib/python3.9/site-packages/EdgeGPT/EdgeGPT.py", line 116, in ask async for final, response in self.chat_hub.ask_stream( File "/Users/yehebin/program/miniforge3/lib/python3.9/site-packages/EdgeGPT/chathub.py", line 102, in ask_stream async with connect( File "/Users/yehebin/program/miniforge3/lib/python3.9/site-packages/websockets/legacy/client.py", line 637, in __aenter__ return await self File "/Users/yehebin/program/miniforge3/lib/python3.9/site-packages/websockets/legacy/client.py", line 655, in __await_impl_timeout__ return await self.__await_impl__() File "/Users/yehebin/program/miniforge3/lib/python3.9/site-packages/websockets/legacy/client.py", line 662, in __await_impl__ await protocol.handshake( File "/Users/yehebin/program/miniforge3/lib/python3.9/site-packages/websockets/legacy/client.py", line 329, in handshake raise InvalidStatusCode(status_code, response_headers) websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200
Proposed workflow
Null
Additional information
I already tried EdgeGPT 0.11.0 0.12.1, can't work.
My env: OS: mac os I access new bing by proxy, proxy works good. I can access new bing by browser.
Source: acheong08/EdgeGPT