xbzstudio / Timeless-Sydney

好用的New Bing web客户端,功能众多~
https://xbzstudio.github.io/Timeless-Sydney
MIT License
661 stars 168 forks source link

会报错然后关闭连接 #91

Closed whatmor closed 1 year ago

whatmor commented 1 year ago

INFO: Started server process [33612] 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:60112 - "GET / HTTP/1.1" 200 OK INFO: 127.0.0.1:60112 - "GET /static/angular.min.js HTTP/1.1" 200 OK INFO: 127.0.0.1:60113 - "GET /static/default.min.css HTTP/1.1" 200 OK INFO: 127.0.0.1:60114 - "GET /static/main.css HTTP/1.1" 200 OK INFO: 127.0.0.1:60115 - "GET /static/highlight.min.js HTTP/1.1" 200 OK INFO: 127.0.0.1:60116 - "GET /static/mdui.min.css HTTP/1.1" 200 OK INFO: 127.0.0.1:60117 - "GET /static/marked.min.js HTTP/1.1" 200 OK INFO: 127.0.0.1:60117 - "GET /static/mdui.min.js HTTP/1.1" 200 OK INFO: 127.0.0.1:60117 - "GET /config/client.js HTTP/1.1" 200 OK INFO: 127.0.0.1:60117 - "GET /%7B%7Bmsg.headimg%7D%7D HTTP/1.1" 404 Not Found INFO: 127.0.0.1:60117 - "GET /fonts/roboto/Roboto-Regular.woff2 HTTP/1.1" 404 Not Found INFO: 127.0.0.1:60116 - "GET /fonts/roboto/Roboto-Medium.woff2 HTTP/1.1" 404 Not Found INFO: 127.0.0.1:60115 - "GET /fonts/roboto/Roboto-Bold.woff2 HTTP/1.1" 404 Not Found INFO: ('127.0.0.1', 60118) - "WebSocket /chat/ws" [accepted] INFO: connection open INFO: 127.0.0.1:60115 - "GET /chat/getTipNames HTTP/1.1" 200 OK INFO: 127.0.0.1:60116 - "GET /static/Bing.png HTTP/1.1" 200 OK INFO: 127.0.0.1:60117 - "GET /static/Background.jpg HTTP/1.1" 200 OK INFO: 127.0.0.1:60116 - "GET /fonts/roboto/Roboto-Regular.woff HTTP/1.1" 404 Not Found INFO: 127.0.0.1:60115 - "GET /fonts/roboto/Roboto-Medium.woff HTTP/1.1" 404 Not Found INFO: 127.0.0.1:60114 - "GET /fonts/roboto/Roboto-Bold.woff HTTP/1.1" 404 Not Found

xbzstudio commented 1 year ago

这有啥问题 这没有任何问题啊

whatmor commented 1 year ago

这有啥问题 这没有任何问题啊

下面几个不是404吗,会自动关闭链接

whatmor commented 1 year ago

这有啥问题 这没有任何问题啊

Go to http://127.0.0.1:80/ and start to chat! INFO: Started server process [5136] 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:58735 - "GET / HTTP/1.1" 200 OK INFO: 127.0.0.1:58735 - "GET /static/angular.min.js HTTP/1.1" 200 OK INFO: 127.0.0.1:58736 - "GET /static/default.min.css HTTP/1.1" 200 OK INFO: 127.0.0.1:58738 - "GET /static/main.css HTTP/1.1" 200 OK INFO: 127.0.0.1:58739 - "GET /static/highlight.min.js HTTP/1.1" 200 OK INFO: 127.0.0.1:58740 - "GET /static/marked.min.js HTTP/1.1" 200 OK INFO: 127.0.0.1:58741 - "GET /static/mdui.min.css HTTP/1.1" 200 OK INFO: 127.0.0.1:58741 - "GET /static/mdui.min.js HTTP/1.1" 200 OK INFO: 127.0.0.1:58740 - "GET /config/client.js HTTP/1.1" 200 OK INFO: 127.0.0.1:58740 - "GET /%7B%7Bmsg.headimg%7D%7D HTTP/1.1" 404 Not Found INFO: 127.0.0.1:58740 - "GET /fonts/roboto/Roboto-Regular.woff2 HTTP/1.1" 404 Not Found INFO: 127.0.0.1:58741 - "GET /fonts/roboto/Roboto-Medium.woff2 HTTP/1.1" 404 Not Found INFO: 127.0.0.1:58739 - "GET /fonts/roboto/Roboto-Bold.woff2 HTTP/1.1" 404 Not Found INFO: 127.0.0.1:58739 - "GET /chat/getTipNames HTTP/1.1" 200 OK INFO: ('127.0.0.1', 58742) - "WebSocket /chat/ws" [accepted] INFO: connection open INFO: 127.0.0.1:58741 - "GET /static/Bing.png HTTP/1.1" 200 OK INFO: 127.0.0.1:58739 - "GET /static/Background.jpg HTTP/1.1" 200 OK INFO: 127.0.0.1:58741 - "GET /fonts/roboto/Roboto-Regular.woff HTTP/1.1" 404 Not Found INFO: 127.0.0.1:58740 - "GET /fonts/roboto/Roboto-Medium.woff HTTP/1.1" 404 Not Found INFO: 127.0.0.1:58738 - "GET /fonts/roboto/Roboto-Bold.woff HTTP/1.1" 404 Not Found Status code: 403

https://www.bing.com/turing/conversation/create ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 247, in run_asgi result = await self.app(self.scope, self.asgi_receive, self.asgi_send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\applications.py", line 289, in call await super().call(scope, receive, send) File "C:\Users\26249\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\26249\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\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\cors.py", line 75, in call await self.app(scope, receive, send) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "C:\Users\26249\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\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call raise e File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call await self.app(scope, receive, send) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 718, in call await route.handle(scope, receive, send) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 341, in handle await self.app(scope, receive, send) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 82, in app await func(session) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\routing.py", line 324, in app await dependant.call(**values) File "D:\Timeless-Sydney-main\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\26249\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\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT\conversation.py", line 112, in create raise Exception("Authentication failed") Exception: Authentication failed INFO: connection closed INFO: ('127.0.0.1', 58745) - "WebSocket /chat/ws" [accepted] INFO: connection open Status code: 403

https://www.bing.com/turing/conversation/create ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 247, in run_asgi result = await self.app(self.scope, self.asgi_receive, self.asgi_send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\applications.py", line 289, in call await super().call(scope, receive, send) File "C:\Users\26249\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\26249\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\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\cors.py", line 75, in call await self.app(scope, receive, send) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "C:\Users\26249\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\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call raise e File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call await self.app(scope, receive, send) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 718, in call await route.handle(scope, receive, send) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 341, in handle await self.app(scope, receive, send) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 82, in app await func(session) File "C:\Users\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\routing.py", line 324, in app await dependant.call(**values) File "D:\Timeless-Sydney-main\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\26249\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\26249\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT\conversation.py", line 112, in create raise Exception("Authentication failed") Exception: Authentication failed INFO: connection closed

xbzstudio commented 1 year ago

不是404的问题,那几个文件404是正常的,因为mdui和angular需要另外的文件而我没有给他们准备好(但是也能正常工作)

你的问题是属于梯子问题,可以尝试换个节点或者换个梯子,建议使用我推荐的geph,很多人都是这个问题用了geph解决了(geph是免费vpn)