Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError 'NoneType' object has no attribute 'get' #840

Open
4 tasks done
copycat016 opened this issue Sep 9, 2024 · 0 comments
Open
4 tasks done

AttributeError 'NoneType' object has no attribute 'get' #840

copycat016 opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@copycat016
Copy link

确认

  • 我的版本是最新版本,我的版本号与 version 相同。
  • 我已经查阅了已知问题,并确认我的问题不在其中。
  • 我已经 issue 中搜索过,确认我的问题没有被提出过。
  • 我已经修改标题,将标题中的 描述 替换为我遇到的问题。

当前程序版本

latest

问题类型

WebUI

问题描述

使用反代理后报错,日志如下

发生问题时系统日志

Traceback (most recent call last)
File "/usr/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
result = await app( # type ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/uvicorn/middleware/message_logger.py", line 86, in __call__
raise exc from None
File "/usr/lib/python3.11/site-packages/uvicorn/middleware/message_logger.py", line 82, in __call__
await self.app(scope, inner_receive, inner_send)
File "/usr/lib/python3.11/site-packages/fastapi/applications.py", line 282, in __call__
await super().__call__(scope, receive, send)
File "/usr/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/usr/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/usr/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/usr/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/usr/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
raise e
File "/usr/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
await self.app(scope, receive, send)
File "/usr/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "/usr/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/usr/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/fastapi/routing.py", line 241, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/fastapi/routing.py", line 167, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/module/api/rss.py", line 178, in analysis
data = analyser.link_to_data(rss)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/module/rss/analyser.py", line 93, in link_to_data
data = self.torrent_to_data(torrent, rss)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/module/rss/analyser.py", line 62, in torrent_to_data
self.official_title_parser(bangumi=bangumi, rss=rss, torrent=torrent)
File "/app/module/rss/analyser.py", line 25, in official_title_parser
tmdb_title, season, year, poster_link = self.tmdb_parser(
^^^^^^^^^^^^^^^^^
File "/app/module/parser/title_parser.py", line 35, in tmdb_parser
tmdb_info = tmdb_parser(title, language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/module/parser/analyser/tmdb_parser.py", line 62, in tmdb_parser
contents = req.get_json(url).get("results")
^^^^^^^^^^^^^^^^^^^^^
AttributeError 'NoneType' object has no attribute 'get'
@copycat016 copycat016 added the bug Something isn't working label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant