acheong08 / EdgeGPT

Reverse engineered API of Microsoft's Bing Chat AI
The Unlicense
8.07k stars 909 forks source link

[Bug]: Websocket init, HTTP 101 request, server response HTTP 200 #631

Open yuanbi opened 1 year ago

yuanbi commented 1 year ago

Is there an existing issue for this?

What happened?

File "/home/yuanbi/EdgeGPT/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 655, in await_impl_timeout return await self.await_impl() File "/home/yuanbi/EdgeGPT/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 662, in await_impl await protocol.handshake( File "/home/yuanbi/EdgeGPT/.venv/lib/python3.10/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

Steps to reproduce the problem

Initializing... Enter alt+enter or escape+enter to send a message

You: 你好 Bot: Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code

What should have happened?

.......

Version where the problem happens

..

What Python version are you running this with?

Python 3.10.6

What is your operating system ?

Windows, Linux

Command Line Arguments

python3 -m EdgeGPT.EdgeGPT --cookie-file /mnt/d/0.txt --proxy http://192.168.80.1:10808

Console logs

File "/home/yuanbi/EdgeGPT/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 655, in __await_impl_timeout__
    return await self.__await_impl__()
  File "/home/yuanbi/EdgeGPT/.venv/lib/python3.10/site-packages/websockets/legacy/client.py", line 662, in __await_impl__
    await protocol.handshake(
  File "/home/yuanbi/EdgeGPT/.venv/lib/python3.10/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

Additional information

No response

xbzstudio commented 1 year ago

我也遇到了这个问题,按照EdgeGPT的文档上的示例代码上照搬,但是不加cookie就报错没有资格beta,加了个cookie就遇到了和你一样的错误。

31702160136 commented 1 year ago

我也一样,不知道为什么

31702160136 commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

IsBigLin commented 1 year ago

我也遇到一样的问题,请问谁有解法吗?上代理后就报错 websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200