-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
Plugin: github_release_notifier #3387
Comments
📃 商店发布检查结果
✅ 所有测试通过,一切准备就绪! 详情
💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。 ♻️ 评论已更新至最新检查结果 💪 Powered by NoneFlow |
插件依赖版本限制错误,请使用如 插件有一处读取配置错误, https://github.com/HTony03/nonebot_plugin_github_release_notifier/blob/cbf9dbd9ffd88448e42816d546fb22399bf2535d/nonebot_plugin_github_release_notifier/group_commands.py#L23 。为什么不在 config.py 里 get_plugin_config 然后其他模块导入? 插件数据请使用 localstore 插件获取目录,不需要提供配置项。 |
requests是仅用于httpx的错误情况 测试时使用httpx所有错误将raise一个空消息的exception(当api返回数据为空,例如:[]这样的空列表时也会触发这个exception) 因而使用requests做第二次获取,消除因为空数据导致的无效错误
|
|
个人认为是你的处理有问题,看看什么报错 |
File "C:\Users\Administrator\Desktop\nonebot_Htony03\nb_indev\src\plugins\nonebot_plugin_github_release_notifier\group_commands.py", line 369, in handle_refresh
await check_and_notify_updates()
└ <function check_and_notify_updates at 0x0000020117DC47C0>
File "C:\Users\Administrator\Desktop\nonebot_Htony03\nb_indev\src\plugins\nonebot_plugin_github_release_notifier\repo_activity.py", line 191, in check_and_notify_updates
data = await fetch_github_data(repo, endpoint)
│ │ └ 'releases/latest'
│ └ 'HTony03/rail_route_schedule_editor'
└ <function fetch_github_data at 0x0000020117DA7740>
> File repo_activity.py", line 78, in fetch_github_data
response = await client.get(api_url, headers=headers)
│ │ └ 'https://api.github.com/repos/HTony03/rail_route_schedule_editor/releases/latest'
│ └ <function AsyncClient.get at 0x0000020114E6EA20>
└ <httpx.AsyncClient object at 0x00000201188077D0>
File "C:\Program Files\Python313\Lib\site-packages\httpx\_client.py", line 1768, in get
return await self.request(
│ └ <function AsyncClient.request at 0x0000020114E6E5C0>
└ <httpx.AsyncClient object at 0x00000201188077D0>
File "C:\Program Files\Python313\Lib\site-packages\httpx\_client.py", line 1540, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "C:\Program Files\Python313\Lib\site-packages\httpx\_client.py", line 1629, in send
response = await self._send_handling_auth(
File "C:\Program Files\Python313\Lib\site-packages\httpx\_client.py", line 1657, in _send_handling_auth
response = await self._send_handling_redirects(
│ └ <function AsyncClient._send_handling_redirects at 0x0000020114E6E8E0>
└ <httpx.AsyncClient object at 0x00000201188077D0>
File "C:\Program Files\Python313\Lib\site-packages\httpx\_client.py", line 1694, in _send_handling_redirects
response = await self._send_single_request(request)
│ │ └ <Request('GET', 'https://api.github.com/repos/HTony03/rail_route_schedule_editor/releases/latest')>
File "C:\Program Files\Python313\Lib\site-packages\httpx\_client.py", line 1730, in _send_single_request
response = await transport.handle_async_request(request)
│ │ └ <Request('GET', 'https://api.github.com/repos/HTony03/rail_route_schedule_editor/releases/latest')>
File "C:\Program Files\Python313\Lib\site-packages\httpx\_transports\default.py", line 393, in handle_async_request
with map_httpcore_exceptions():
└ <function map_httpcore_exceptions at 0x0000020114E56C00>
File "C:\Program Files\Python313\Lib\contextlib.py", line 162, in __exit__
self.gen.throw(value)
│ │ │ └ ReadError(BrokenResourceError())
│ │ └ <method 'throw' of 'generator' objects>
│ └ <generator object map_httpcore_exceptions at 0x00000201184D2940>
└ <contextlib._GeneratorContextManager object at 0x000002011842EF90>
File "C:\Program Files\Python313\Lib\site-packages\httpx\_transports\default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
│ └ ''
└ <class 'httpx.ReadError'>
httpx.ReadError 返回为 |
你是否使用了代理? |
关闭了代理 未关闭时不会出现此错误 |
github api 并不能在国内稳定访问,httpx默认会读取环境变量里的 https_proxy |
插件已更新 修改httpx至aiohttp,已删除requests,版本号为:0.1.4, 请求再次审阅 |
插件元数据里缺少配置类。localstore 请使用 读取全局配置错误,请使用 |
问题已修复, 版本号0.1.6 |
插件元数据还是缺少配置类 |
PyPI 项目名
nonebot-plugin-github-release-notifier
插件 import 包名
nonebot_plugin_github_release_notifier
标签
[{"label":" Github","color":"#ea5252"},{"label":"Github","color":"#ea5252"}]
插件配置项
插件测试
The text was updated successfully, but these errors were encountered: