Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

网页中提示“连接丢失”错误,控制台错误有Exception in ASGI application,Exception: Authentication failed,具体如下: #95

Open
lpzyz opened this issue Aug 25, 2023 · 1 comment

Comments

@lpzyz
Copy link

lpzyz commented Aug 25, 2023

Go to http://127.0.0.1:80/ and start to chat!
INFO: Started server process [25928]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
INFO: ('127.0.0.1', 3223) - "WebSocket /chat/ws" [accepted]
INFO: connection open
INFO: 127.0.0.1:3224 - "GET /chat/getTipNames HTTP/1.1" 200 OK
Status code: 403

https://www.bing.com/turing/conversation/create
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 254, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\applications.py", line 276, in call
await super().call(scope, receive, send)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\errors.py", line 149, in call
await self.app(scope, receive, send)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\cors.py", line 76, in call
await self.app(scope, receive, send)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 341, in handle
await self.app(scope, receive, send)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 82, in app
await func(session)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\routing.py", line 289, in app
await dependant.call(**values)
File "D:\Timeless-Sydney-TimlessSydney1.8.2\main.py", line 62, in wsStream
chatbot = await gpt.Chatbot.create(cookies = json.loads(open('./config/cookie.json', 'r', encoding='utf-8').read()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT\EdgeGPT.py", line 42, in create
await Conversation.create(self.proxy, cookies=cookies),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT\conversation.py", line 112, in create
raise Exception("Authentication failed")
Exception: Authentication failed
ERROR: closing handshake failed
Traceback (most recent call last):
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\websockets\legacy\server.py", line 248, in handler
await self.close()
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\websockets\legacy\protocol.py", line 766, in close
await self.write_close_frame(Close(code, reason))
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\websockets\legacy\protocol.py", line 1232, in write_close_frame
await self.write_frame(True, OP_CLOSE, data, _state=State.CLOSING)
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\websockets\legacy\protocol.py", line 1205, in write_frame
await self.drain()
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\websockets\legacy\protocol.py", line 1194, in drain
await self.ensure_open()
File "C:\Users\16474\AppData\Local\Programs\Python\Python311\Lib\site-packages\websockets\legacy\protocol.py", line 935, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1000 (OK); no close frame received
INFO: connection closed

@xbzstudio
Copy link
Owner

换节点或者换VPN,推荐使用项目Readme中的Geph

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

2 participants