ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\python\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 "D:\python\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\site-packages\fastapi\applications.py", line 276, in call
await super().call(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\middleware\errors.py", line 149, in call
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\middleware\cors.py", line 76, in call
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\routing.py", line 341, in handle
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\routing.py", line 82, in app
await func(session)
File "D:\python\Lib\site-packages\fastapi\routing.py", line 289, in app
await dependant.call(values)
File "D:\Download\BingAI-Client-main\BingAI-Client-main\BingServer.py", line 265, in wsStream
cookies = json.loads(open(COOKIE_FILE_PATH, encoding="utf-8").read())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\json__init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
INFO: connection open
INFO: connection closed
INFO: ('127.0.0.1', 59405) - "WebSocket /ws_stream" [accepted]
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\python\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 "D:\python\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\site-packages\fastapi\applications.py", line 276, in call
await super().call(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\middleware\errors.py", line 149, in call
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\middleware\cors.py", line 76, in call
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\routing.py", line 718, in call__
await route.handle(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\routing.py", line 341, in handle
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\routing.py", line 82, in app
await func(session)
File "D:\python\Lib\site-packages\fastapi\routing.py", line 289, in app
await dependant.call(values)
File "D:\Download\BingAI-Client-main\BingAI-Client-main\BingServer.py", line 265, in wsStream
cookies = json.loads(open(COOKIE_FILE_PATH, encoding="utf-8").read())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\json__init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
INFO: connection open
INFO: connection closed
INFO: ('127.0.0.1', 59406) - "WebSocket /ws_stream" [accepted]
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\python\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 "D:\python\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\site-packages\fastapi\applications.py", line 276, in call
await super().call(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\middleware\errors.py", line 149, in call
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\middleware\cors.py", line 76, in call
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\routing.py", line 341, in handle
await self.app(scope, receive, send)
File "D:\python\Lib\site-packages\starlette\routing.py", line 82, in app
await func(session)
File "D:\python\Lib\site-packages\fastapi\routing.py", line 289, in app
await dependant.call(**values)
File "D:\Download\BingAI-Client-main\BingAI-Client-main\BingServer.py", line 265, in wsStream
cookies = json.loads(open(COOKIE_FILE_PATH, encoding="utf-8").read())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\json\init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
INFO: connection open
INFO: connection closed
INFO: ('127.0.0.1', 59407) - "WebSocket /ws_stream" [accepted]
总之就是一直弹ERROR: Exception in ASGI application..不知道怎么回事🥺
ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\python\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 "D:\python\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\site-packages\fastapi\applications.py", line 276, in call await super().call(scope, receive, send) File "D:\python\Lib\site-packages\starlette\applications.py", line 122, in call await self.middleware_stack(scope, receive, send) File "D:\python\Lib\site-packages\starlette\middleware\errors.py", line 149, in call await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\middleware\cors.py", line 76, in call await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call await self.app(scope, receive, sender) File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call raise e File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\routing.py", line 718, in call await route.handle(scope, receive, send) File "D:\python\Lib\site-packages\starlette\routing.py", line 341, in handle await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\routing.py", line 82, in app await func(session) File "D:\python\Lib\site-packages\fastapi\routing.py", line 289, in app await dependant.call(values) File "D:\Download\BingAI-Client-main\BingAI-Client-main\BingServer.py", line 265, in wsStream cookies = json.loads(open(COOKIE_FILE_PATH, encoding="utf-8").read()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\json__init.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) INFO: connection open INFO: connection closed INFO: ('127.0.0.1', 59405) - "WebSocket /ws_stream" [accepted] ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\python\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 "D:\python\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\site-packages\fastapi\applications.py", line 276, in call await super().call(scope, receive, send) File "D:\python\Lib\site-packages\starlette\applications.py", line 122, in call await self.middleware_stack(scope, receive, send) File "D:\python\Lib\site-packages\starlette\middleware\errors.py", line 149, in call await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\middleware\cors.py", line 76, in call await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call await self.app(scope, receive, sender) File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call raise e File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\routing.py", line 718, in call__ await route.handle(scope, receive, send) File "D:\python\Lib\site-packages\starlette\routing.py", line 341, in handle await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\routing.py", line 82, in app await func(session) File "D:\python\Lib\site-packages\fastapi\routing.py", line 289, in app await dependant.call(values) File "D:\Download\BingAI-Client-main\BingAI-Client-main\BingServer.py", line 265, in wsStream cookies = json.loads(open(COOKIE_FILE_PATH, encoding="utf-8").read()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\json__init.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) INFO: connection open INFO: connection closed INFO: ('127.0.0.1', 59406) - "WebSocket /ws_stream" [accepted] ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\python\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 "D:\python\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\site-packages\fastapi\applications.py", line 276, in call await super().call(scope, receive, send) File "D:\python\Lib\site-packages\starlette\applications.py", line 122, in call await self.middleware_stack(scope, receive, send) File "D:\python\Lib\site-packages\starlette\middleware\errors.py", line 149, in call await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\middleware\cors.py", line 76, in call await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "D:\python\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call await self.app(scope, receive, sender) File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call raise e File "D:\python\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\routing.py", line 718, in call await route.handle(scope, receive, send) File "D:\python\Lib\site-packages\starlette\routing.py", line 341, in handle await self.app(scope, receive, send) File "D:\python\Lib\site-packages\starlette\routing.py", line 82, in app await func(session) File "D:\python\Lib\site-packages\fastapi\routing.py", line 289, in app await dependant.call(**values) File "D:\Download\BingAI-Client-main\BingAI-Client-main\BingServer.py", line 265, in wsStream cookies = json.loads(open(COOKIE_FILE_PATH, encoding="utf-8").read()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\json\init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) INFO: connection open INFO: connection closed INFO: ('127.0.0.1', 59407) - "WebSocket /ws_stream" [accepted]
总之就是一直弹ERROR: Exception in ASGI application..不知道怎么回事🥺