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

[错误报告]: ~~看起来webhook插件有时候会导致问题~~ 订正:错误基本都是由内建BT索引错误引起的 #331

Open
3 tasks done
HankunYu opened this issue Sep 23, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@HankunYu
Copy link

确认

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

当前程序版本

v3.3.9 3e9d42c

问题类型

主程序运行问题

问题描述

偶然会遇到的问题,不是每次触发webhook都会有问题.感觉挺难定位问题出在哪里....
我webhook发送到本地一个python跑的flask

结果导致整个nastool卡死

发生问题时系统日志和配置文件

2023-09-23 22:42:52 Object of type MediaType is not JSON serializable Traceback (most recent call last):
2023-09-23 22:42:52   File "/nas-tools/app/plugins/plugin_manager.py", line 133, in run_plugin
2023-09-23 22:42:52     return getattr(self._running_plugins[pid], method)(*args, **kwargs)
2023-09-23 22:42:52   File "/nas-tools/app/plugins/modules/webhook.py", line 99, in send
2023-09-23 22:42:52     ret = RequestUtils(content_type="application/json").post_res(self._webhook_url, json=event_info)
2023-09-23 22:42:52   File "/nas-tools/app/utils/http_utils.py", line 141, in post_res
2023-09-23 22:42:52     return requests.post(url,
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 115, in post
2023-09-23 22:42:52     return request("post", url, data=data, json=json, **kwargs)
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request
2023-09-23 22:42:52     return session.request(method=method, url=url, **kwargs)
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 575, in request
2023-09-23 22:42:52     prep = self.prepare_request(req)
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 486, in prepare_request
2023-09-23 22:42:52     p.prepare(
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 371, in prepare
2023-09-23 22:42:52     self.prepare_body(data, files, json)
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 511, in prepare_body
2023-09-23 22:42:52     body = complexjson.dumps(json, allow_nan=False)
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/json/__init__.py", line 238, in dumps
2023-09-23 22:42:52     **kw).encode(obj)
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/json/encoder.py", line 199, in encode
2023-09-23 22:42:52     chunks = self.iterencode(o, _one_shot=True)
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/json/encoder.py", line 257, in iterencode
2023-09-23 22:42:52     return _iterencode(o, 0)
2023-09-23 22:42:52   File "/usr/local/lib/python3.10/json/encoder.py", line 179, in default
2023-09-23 22:42:52     raise TypeError(f'Object of type {o.__class__.__name__} '
2023-09-23 22:42:52 TypeError: Object of type MediaType is not JSON serializable
2023-09-23 22:42:52 
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
2023-09-23 22:42:52 argument of type 'NoneType' is not iterable
@HankunYu HankunYu added the bug Something isn't working label Sep 23, 2023
@HankunYu
Copy link
Author

HankunYu commented Sep 23, 2023

不确定有没有关系,还遇到这个问题 关于openssl, 这个发生在搜索资源的时候
破案了,我的路由器block了nyaa...

@HankunYu HankunYu changed the title [错误报告]: 看起来webhook插件有时候会导致问题 [错误报告]: ~~看起来webhook插件有时候会导致问题~~错误基本都是由内建BT索引错误引起的 Sep 24, 2023
@HankunYu HankunYu changed the title [错误报告]: ~~看起来webhook插件有时候会导致问题~~错误基本都是由内建BT索引错误引起的 [错误报告]: ~~看起来webhook插件有时候会导致问题~~ 订正:错误基本都是由内建BT索引错误引起的 Sep 24, 2023
@iovejieba
Copy link
Contributor

不确定有没有关系,还遇到这个问题 关于openssl, 这个发生在搜索资源的时候 破案了,我的路由器block了nyaa...

倒也不是....无法访问的报错和这个貌似不一样 acg现在好像标题返回有改动 也是argument of type 'NoneType' is not iterable 但nyaa 貌似没问题

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

2 participants