Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

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

Open
1 task done
yuanbi opened this issue Jul 30, 2023 · 4 comments
Open
1 task done

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

yuanbi opened this issue Jul 30, 2023 · 4 comments

Comments

@yuanbi
Copy link

yuanbi commented Jul 30, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

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
Copy link

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

@31702160136
Copy link

我也一样,不知道为什么

@31702160136
Copy link

31702160136 commented Aug 1, 2023 via email

@IsBigLin
Copy link

IsBigLin commented Aug 1, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants