feat:重构UI
This commit is contained in:
70
uvicorn8001.err
Normal file
70
uvicorn8001.err
Normal file
@@ -0,0 +1,70 @@
|
||||
C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\_internal\_fields.py:160: UserWarning: Field "model_id" has conflict with protected namespace "model_".
|
||||
|
||||
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
|
||||
warnings.warn(
|
||||
INFO: Started server process [28524]
|
||||
INFO: Waiting for application startup.
|
||||
INFO: Application startup complete.
|
||||
INFO: Uvicorn running on http://127.0.0.1:8001 (Press CTRL+C to quit)
|
||||
ERROR: Exception in ASGI application
|
||||
Traceback (most recent call last):
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 411, in run_asgi
|
||||
result = await app( # type: ignore[func-returns-value]
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
|
||||
return await self.app(scope, receive, send)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\applications.py", line 1054, in __call__
|
||||
await super().__call__(scope, receive, send)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\applications.py", line 123, in __call__
|
||||
await self.middleware_stack(scope, receive, send)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
|
||||
await self.app(scope, receive, _send)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__
|
||||
await self.app(scope, receive, send)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\middleware\exceptions.py", line 65, in __call__
|
||||
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
|
||||
await app(scope, receive, sender)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 756, in __call__
|
||||
await self.middleware_stack(scope, receive, send)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 776, in app
|
||||
await route.handle(scope, receive, send)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 297, in handle
|
||||
await self.app(scope, receive, send)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 77, in app
|
||||
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
|
||||
await app(scope, receive, sender)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\starlette\routing.py", line 72, in app
|
||||
response = await func(request)
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\routing.py", line 278, in app
|
||||
raw_response = await run_endpoint_function(
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastapi\routing.py", line 191, in run_endpoint_function
|
||||
return await dependant.call(**values)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\project\AI_Translator\apps\api\app\api\translate.py", line 45, in translate
|
||||
await cache_service.set(cache_key, {
|
||||
File "D:\project\AI_Translator\apps\api\app\services\cache.py", line 54, in set
|
||||
await self.redis.set(key, json.dumps(value), ex=ttl)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\redis\asyncio\client.py", line 601, in execute_command
|
||||
conn = self.connection or await pool.get_connection(command_name, **options)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\redis\asyncio\connection.py", line 1040, in get_connection
|
||||
await self.ensure_connection(connection)
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\redis\asyncio\connection.py", line 1068, in ensure_connection
|
||||
if await connection.can_read_destructive():
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\redis\asyncio\connection.py", line 473, in can_read_destructive
|
||||
return await self._parser.can_read_destructive()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\site-packages\redis\_parsers\base.py", line 185, in can_read_destructive
|
||||
return await self._stream.read(1)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\asyncio\streams.py", line 689, in read
|
||||
await self._wait_for_data('read')
|
||||
File "C:\Users\31276\AppData\Local\Programs\Python\Python311\Lib\asyncio\streams.py", line 522, in _wait_for_data
|
||||
await self._waiter
|
||||
asyncio.exceptions.CancelledError
|
||||
Reference in New Issue
Block a user