FileCodeBox icon indicating copy to clipboard operation
FileCodeBox copied to clipboard

webdav 上传文件后,下载显示 Internal Server Error

Open xxiThubmsk opened this issue 8 months ago • 5 comments

错误图片: Image

我还以为是文件命名有错误,换成中文命,还是上传不了。 但是我测试的时候发现: .md结尾文件不能下载,.pdf 也不行。但是打包成.zip 就OK。

docker 日志 :

INFO:     172.17.0.1:44296 - "POST / HTTP/1.1" 200 OK
INFO:     172.17.0.1:44308 - "POST /share/select/ HTTP/1.1" 200 OK
INFO:     172.17.0.1:44318 - "GET /share/download?key=2159465ca6437340c3426ea9d15982ae746867febb55c3cb7c672b2009480b82&code=14178 HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
    return await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
    response = await f(request)
  File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
    raw_response = await run_endpoint_function(
  File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
  File "/app/apps/base/views.py", line 156, in download_file
    else await file_storage.get_file_response(file_code)
  File "/app/core/storage.py", line 695, in get_file_response
    return Response(
  File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
    self.init_headers(headers)
  File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
    raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
  File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
    raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-23: ordinal not in range(256)

xxiThubmsk avatar Mar 26 '25 12:03 xxiThubmsk

感谢反馈,后面修复

vastsa avatar Mar 26 '25 14:03 vastsa

解决了吗 我也有这个问题 Image

Image

AnMo2077 avatar Apr 19 '25 07:04 AnMo2077

解决了吗 我也有这个问题 Image

Image

更新看看,适配了一下alist的webdav

vastsa avatar Apr 25 '25 14:04 vastsa

感谢反馈,后面修复

这也是我目前面临的问题,希望早日修复,感谢作者!

Epochwl avatar Jul 18 '25 09:07 Epochwl

解决了吗 我也有这个问题 Image Image

更新看看,适配了一下alist的webdav

今天同样遇到了这个问题,我使用的也是alist的webdav。

经过测试,应该是中文文件名称的关系:我上传了一个全中文命名的截图文件和一个时间戳格式(纯数字和连字符)命名的截图文件,中文名称的文件报错,另一个文件就没有遇到这个错误,且报错信息和楼主的报错信息一致

Doracoin avatar Oct 13 '25 03:10 Doracoin

我也遇到类似的问题,存储位置是clouddrive2的webdav,同样可以上传但是下载报错“Internal Server Error”。而且还经常报错“取件失败,请稍后重试:请求次数过多,请稍后再试”。

filecodebox  | INFO:     192.168.10.29:51504 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:51498 - "GET /assets/DingTalk-CT5a5scH.ttf HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:51496 - "GET /assets/file-ExORVwAL.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:51520 - "GET /assets/clipboard-Bj3kv5gr.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:51542 - "GET /assets/trash-McEm8LQt.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:51546 - "GET /assets/RetrievewFileView-BsjeRxMF.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:51554 - "GET /assets/RetrievewFileView-CfCNxb7z.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:51526 - "GET /assets/hard-drive-QraB3QOb.js HTTP/1.1" 304 Not Modified
filecodebox  | INFO:     192.168.10.29:51570 - "GET /assets/box-CCCmbUYf.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:51554 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:59824 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:59824 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:59824 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:33890 - "GET /assets/SendFileView-0AP69Sbg.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:33894 - "GET /assets/SendFileView-XtpGZxXZ.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:34246 - "POST /share/file/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45174 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45174 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45174 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44852 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44852 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44852 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46294 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46306 - "GET /assets/index-CVaRI27s.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46294 - "GET /assets/index-B-Ka-o3f.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46294 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46306 - "GET /assets/RetrievewFileView-BsjeRxMF.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46318 - "GET /assets/clipboard-Bj3kv5gr.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46342 - "GET /assets/file-ExORVwAL.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46368 - "GET /assets/trash-McEm8LQt.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46364 - "GET /assets/RetrievewFileView-CfCNxb7z.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46352 - "GET /assets/hard-drive-QraB3QOb.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46330 - "GET /assets/box-CCCmbUYf.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46352 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46352 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46342 - "GET /assets/DingTalk-CT5a5scH.ttf HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:54076 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:54076 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:54076 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45710 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45710 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45710 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45714 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45714 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45714 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:34634 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:34634 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:34634 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:34634 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:34634 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:34634 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39670 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39670 - "GET /assets/index-B-Ka-o3f.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39678 - "GET /assets/index-CVaRI27s.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39670 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39678 - "GET /assets/RetrievewFileView-BsjeRxMF.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39694 - "GET /assets/clipboard-Bj3kv5gr.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39692 - "GET /assets/hard-drive-QraB3QOb.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39700 - "GET /assets/box-CCCmbUYf.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39714 - "GET /assets/RetrievewFileView-CfCNxb7z.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39708 - "GET /assets/trash-McEm8LQt.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39710 - "GET /assets/file-ExORVwAL.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39714 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39708 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39700 - "GET /assets/DingTalk-CT5a5scH.ttf HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:60878 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:60878 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:60878 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48622 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48622 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48622 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:60668 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:60668 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:60668 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:55456 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:55456 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:55456 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:40190 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:40190 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:40190 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:40190 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:40190 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:40190 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44734 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44734 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44734 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44734 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44734 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44734 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44134 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44134 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44134 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44134 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44134 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44134 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41764 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41764 - "GET /assets/index-CVaRI27s.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41768 - "GET /assets/index-B-Ka-o3f.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41768 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41768 - "GET /assets/RetrievewFileView-BsjeRxMF.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41764 - "GET /assets/box-CCCmbUYf.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:35480 - "GET /assets/clipboard-Bj3kv5gr.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:35508 - "GET /assets/hard-drive-QraB3QOb.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:35494 - "GET /assets/trash-McEm8LQt.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:35472 - "GET /assets/RetrievewFileView-CfCNxb7z.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:35510 - "GET /assets/file-ExORVwAL.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41768 - "GET /assets/DingTalk-CT5a5scH.ttf HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41768 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41768 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:35480 - "GET /assets/SendFileView-0AP69Sbg.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41768 - "GET /assets/SendFileView-XtpGZxXZ.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49338 - "POST /share/file/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49338 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:38684 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:38690 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:38690 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:38690 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47944 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47960 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47964 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47974 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47974 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48058 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48058 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48064 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48070 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48070 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57168 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57178 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57194 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57210 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57210 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57210 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57224 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57226 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57226 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57226 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57226 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57226 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57224 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57226 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44204 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44204 - "GET /assets/index-B-Ka-o3f.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44214 - "GET /assets/index-CVaRI27s.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44204 - "GET /assets/RetrievewFileView-CfCNxb7z.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44242 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44214 - "GET /assets/hard-drive-QraB3QOb.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44230 - "GET /assets/RetrievewFileView-BsjeRxMF.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44216 - "GET /assets/file-ExORVwAL.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44264 - "GET /assets/trash-McEm8LQt.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44260 - "GET /assets/box-CCCmbUYf.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44244 - "GET /assets/clipboard-Bj3kv5gr.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44230 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44230 - "GET /assets/DingTalk-CT5a5scH.ttf HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44230 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:43356 - "GET /share/download?key=0bca260ab77e88397f31c4768c3caca433b461b99b88bdaec62d7b99bf2e4eb5&code=52357 HTTP/1.1" 500 Internal Server Error
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:50738 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50754 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50768 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50768 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50768 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50768 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50768 - "GET /assets/index-CVaRI27s.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50768 - "GET /assets/index-B-Ka-o3f.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50768 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50768 - "GET /assets/RetrievewFileView-BsjeRxMF.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50768 - "GET /assets/clipboard-Bj3kv5gr.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50774 - "GET /assets/box-CCCmbUYf.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50814 - "GET /assets/trash-McEm8LQt.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50780 - "GET /assets/file-ExORVwAL.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50784 - "GET /assets/hard-drive-QraB3QOb.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50798 - "GET /assets/RetrievewFileView-CfCNxb7z.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50780 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50780 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:50780 - "GET /assets/DingTalk-CT5a5scH.ttf HTTP/1.1" 200 OK
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:57416 - "GET /share/download?key=0bca260ab77e88397f31c4768c3caca433b461b99b88bdaec62d7b99bf2e4eb5&code=52357 HTTP/1.1" 500 Internal Server Error
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:42018 - "GET /share/download?key=0bca260ab77e88397f31c4768c3caca433b461b99b88bdaec62d7b99bf2e4eb5&code=52357 HTTP/1.1" 500 Internal Server Error
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:55394 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39678 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39678 - "GET /assets/index-B-Ka-o3f.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39690 - "GET /assets/index-CVaRI27s.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39678 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39690 - "GET /assets/RetrievewFileView-BsjeRxMF.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39678 - "GET /assets/box-CCCmbUYf.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36878 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36900 - "GET /assets/file-ExORVwAL.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36910 - "GET /assets/clipboard-Bj3kv5gr.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36924 - "GET /assets/hard-drive-QraB3QOb.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36928 - "GET /assets/RetrievewFileView-CfCNxb7z.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36892 - "GET /assets/trash-McEm8LQt.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36928 - "GET /assets/DingTalk-CT5a5scH.ttf HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36892 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36878 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36878 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36928 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36892 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39690 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39690 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39690 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39690 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39690 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39690 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36930 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36938 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36946 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36952 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36952 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:39690 - "GET /share/download?key=0bca260ab77e88397f31c4768c3caca433b461b99b88bdaec62d7b99bf2e4eb5&code=52357 HTTP/1.1" 500 Internal Server Error
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:50112 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48428 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48432 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48442 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48458 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48458 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48458 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48458 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48458 - "GET /assets/index-CVaRI27s.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57008 - "GET /assets/index-B-Ka-o3f.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57008 - "GET /assets/DingTalk-CT5a5scH.ttf HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48458 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57008 - "GET /assets/RetrievewFileView-BsjeRxMF.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:48458 - "GET /assets/clipboard-Bj3kv5gr.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57050 - "GET /assets/file-ExORVwAL.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57020 - "GET /assets/hard-drive-QraB3QOb.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57032 - "GET /assets/trash-McEm8LQt.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57018 - "GET /assets/RetrievewFileView-CfCNxb7z.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57046 - "GET /assets/box-CCCmbUYf.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57018 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57018 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57018 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41934 - "POST /share/select/ HTTP/1.1" 423 Locked
filecodebox  | INFO:     192.168.10.29:41934 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41948 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41934 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41934 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41964 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41978 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:41992 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:42008 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:42008 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:42008 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:42008 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:42008 - "POST /share/select/ HTTP/1.1" 423 Locked
filecodebox  | INFO:     192.168.10.29:42008 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45266 - "POST /share/select/ HTTP/1.1" 423 Locked
filecodebox  | INFO:     192.168.10.29:57962 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:57962 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49538 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49552 - "GET /assets/index-CVaRI27s.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49538 - "GET /assets/index-B-Ka-o3f.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49538 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49538 - "GET /assets/clipboard-Bj3kv5gr.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49552 - "GET /assets/box-CCCmbUYf.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49554 - "GET /assets/RetrievewFileView-BsjeRxMF.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49554 - "GET /assets/RetrievewFileView-CfCNxb7z.css HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49554 - "GET /assets/file-ExORVwAL.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49554 - "GET /assets/hard-drive-QraB3QOb.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49554 - "GET /assets/trash-McEm8LQt.js HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49554 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49554 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49552 - "GET /assets/DingTalk-CT5a5scH.ttf HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:49554 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:54974 - "GET /share/download?key=dde7e3fa101934e7adcbeb911c0a3945201300d9e8774370cda447bb17f50a1c&code=52357 HTTP/1.1" 500 Internal Server Error
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:40672 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:56690 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:56698 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:56690 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:56714 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:56714 - "GET /share/download?key=fd3e55f89cea49b20206e92dce2fbc23712274488a6ecbc039d70fe2d513da30&code=52357 HTTP/1.1" 500 Internal Server Error
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:43000 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:34398 - "GET /share/download?key=0bca260ab77e88397f31c4768c3caca433b461b99b88bdaec62d7b99bf2e4eb5&code=52357 HTTP/1.1" 500 Internal Server Error
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:45496 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44764 - "GET /share/download?key=0bca260ab77e88397f31c4768c3caca433b461b99b88bdaec62d7b99bf2e4eb5&code=52357 HTTP/1.1" 500 Internal Server Error
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:54460 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36844 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36844 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36844 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46694 - "POST /share/file/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46694 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47260 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47268 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47280 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47280 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47280 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47268 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:47260 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46694 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46694 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46694 - "POST /share/select/ HTTP/1.1" 423 Locked
filecodebox  | INFO:     192.168.10.29:56804 - "POST /share/select/ HTTP/1.1" 423 Locked
filecodebox  | INFO:     192.168.10.29:46628 - "POST /share/file/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46628 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46640 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46656 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46664 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46664 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46664 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46664 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46656 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46640 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46640 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46640 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46640 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45842 - "GET /assets/manifest.json HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46640 - "POST /share/select/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:46640 - "GET /share/download?key=48de81ebd8db993d63ed924250f09f2cd6306c92b65a4696e8db5496974f0d25&code=61271 HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:37066 - "GET /share/download?key=0bca260ab77e88397f31c4768c3caca433b461b99b88bdaec62d7b99bf2e4eb5&code=52357 HTTP/1.1" 500 Internal Server Error
filecodebox  | ERROR:    Exception in ASGI application
filecodebox  | Traceback (most recent call last):
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
filecodebox  |     result = await app(  # type: ignore[func-returns-value]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
filecodebox  |     return await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
filecodebox  |     await super().__call__(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 187, in __call__
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 165, in __call__
filecodebox  |     await self.app(scope, receive, _send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
filecodebox  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
filecodebox  |     await self.middleware_stack(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
filecodebox  |     await route.handle(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 288, in handle
filecodebox  |     await self.app(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 76, in app
filecodebox  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
filecodebox  |     raise exc
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
filecodebox  |     await app(scope, receive, sender)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 73, in app
filecodebox  |     response = await f(request)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 301, in app
filecodebox  |     raw_response = await run_endpoint_function(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
filecodebox  |     return await dependant.call(**values)
filecodebox  |   File "/app/apps/base/views.py", line 150, in download_file
filecodebox  |     else await file_storage.get_file_response(file_code)
filecodebox  |   File "/app/core/storage.py", line 706, in get_file_response
filecodebox  |     return Response(
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 42, in __init__
filecodebox  |     self.init_headers(headers)
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in init_headers
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 57, in <listcomp>
filecodebox  |     raw_headers = [(k.lower().encode("latin-1"), v.encode("latin-1")) for k, v in headers.items()]
filecodebox  | UnicodeEncodeError: 'latin-1' codec can't encode character '\u6708' in position 23: ordinal not in range(256)
filecodebox  | INFO:     192.168.10.29:33208 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:36010 - "POST /share/file/ HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44642 - "GET /apple-touch-icon-precomposed.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44658 - "GET /apple-touch-icon.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44670 - "GET /favicon.ico HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44672 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44672 - "GET /assets/logo_small.png HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:44672 - "POST /share/select/ HTTP/1.1" 423 Locked
filecodebox  | INFO:     192.168.10.29:45756 - "GET / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45756 - "POST / HTTP/1.1" 200 OK
filecodebox  | INFO:     192.168.10.29:45756 - "POST /share/select/ HTTP/1.1" 423 Locked
filecodebox  | INFO:     192.168.10.29:45756 - "GET /assets/manifest.json HTTP/1.1" 200 OK

KlausXXX95 avatar Nov 17 '25 08:11 KlausXXX95

解决了吗 我也有这个问题 Image Image

更新看看,适配了一下alist的webdav

今天同样遇到了这个问题,我使用的也是alist的webdav。

经过测试,应该是中文文件名称的关系:我上传了一个全中文命名的截图文件和一个时间戳格式(纯数字和连字符)命名的截图文件,中文名称的文件报错,另一个文件就没有遇到这个错误,且报错信息和楼主的报错信息一致

赞同,同样的文件把中文去掉可以下载

KlausXXX95 avatar Nov 17 '25 08:11 KlausXXX95