Closed kotoritan closed 2 years ago
服务器哪家的?地区是哪里?
尝试重启一下服务器看看有没有效果。
腾讯云香港,重启了服务器还是没有解决,输入命令可以正常反应,但就是截取不了动态。 话说qq群还可以加入吗,申请了但似乎没有人同意。
可以加的,我没看到新的加群申请。
点击链接加入群聊【💈SK发廊💈】:https://jq.qq.com/?_wv=1027&k=3bPcrxIb
解决了,是python版本的问题,从python3.8.10更换为python3.10.6后可以正常使用了
hmm,很奇怪,我腾讯云默认的3.8没有问题。
我这边同样的报错,但是是fastapi先有error,是更新v1.5.1后才出现的问题
但是报错可以出图片,只不过会一直报错一直发直到30000ms
01-15 19:53:57 [INFO] nonebot_plugin_gocqhttp | [2715252422] 发送群 TAOG(5762776
48) 的消息: [{"type": ... (906785487)
01-15 19:53:57 [ERROR] apscheduler | Job "dy_sched (trigger: date[2023-01-15 19:
53:22 CST], next run at: 2023-01-15 19:53:22 CST)" raised an exception
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy
.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy
.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts\n
b.exe__main.py", line 7, in
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site- packages\apscheduler\executors\base_py3.py", line 30, in run_coroutine_job retval = await job.func(*job.args, **job.kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site- packages\haruka_bot\plugins\pusher\dynamic_pusher.py", line 88, in dy_sched await safe_send( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site- packages\haruka_bot\utils__init.py", line 165, in safe_send return await _safe_send(bot, send_type, type_id, message) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site- packages\haruka_bot\utils\init__.py", line 123, in _safe_send assert guild AssertionError
运行环境
ubuntu20.04
HarukaBot 版本
1.4.1.post3
go-cqhttp 版本
1.0.0-rc3
错误描述
无法推送动态,提示:截取动态时发生错误。 请大佬帮忙看看
09-06 18:12:19 [ERROR] haruka_bot | 截取动态时发生错误:https://m.bilibili.com/dynamic/702745581335871525 Traceback (most recent call last): File "/usr/local/bin/hb", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1130, in call
return self.main(args, kwargs)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 760, in invoke
return __callback(args, kwargs)
File "/usr/local/lib/python3.8/dist-packages/haruka_bot/cli/init.py", line 16, in run
run()
File "/usr/local/lib/python3.8/dist-packages/haruka_bot/cli/bot.py", line 35, in run
nonebot.run(app="haruka_bot.cli.bot:app")
File "/usr/local/lib/python3.8/dist-packages/nonebot/init.py", line 261, in run
get_driver().run(*args, *kwargs)
File "/usr/local/lib/python3.8/dist-packages/nonebot/drivers/fastapi.py", line 170, in run
uvicorn.run(
File "/usr/local/lib/python3.8/dist-packages/uvicorn/main.py", line 576, in run
server.run()
File "/usr/local/lib/python3.8/dist-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job
retval = await job.func(job.args, job.kwargs)
File "/usr/local/lib/python3.8/dist-packages/haruka_bot/plugins/pusher/dynamic_pusher.py", line 66, in dy_sched
image = await get_dynamic_screenshot(dynamic_id)
File "/usr/local/lib/python3.8/dist-packages/haruka_bot/utils/browser.py", line 32, in get_dynamic_screenshot
return await get_dynamic_screenshot_mobile(dynamic_id)
报错日志(如果有)