Closed Ra1n-qwq closed 1 year ago
从头开始更新就会出现这种情况。怀疑是短时间内请求次数过多,没有做报错&重试处理,限制下请求频率可能可以解决。
启动插件时报错
`Traceback (most recent call last):
File "D:\PRJ\pythonPRJ\GuguguyBot\Guguguy\gocqhttp\Guguguy\bot.py", line 22, in
File "C:\Users\10953\AppData\Roaming\Python\Python310\site-packages\nonebot\internal\driver\driver.py", line 152, in _run_hook await asyncio.gather(*coros) File "C:\Users\10953\AppData\Roaming\Python\Python310\site-packages\nonebot\utils.py", line 158, in run_coro_with_catch return await coro File "C:\Users\10953\AppData\Roaming\Python\Python310\site-packages\nonebot\dependencies__init.py", line 108, in call return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "C:\Users\10953\AppData\Roaming\Python\Python310\site-packages\nonebot_plugin_arktools\src\utils\database.py", line 433, in _init_db await ArknightsDB.init_db() File "C:\Users\10953\AppData\Roaming\Python\Python310\site-packages\nonebot_plugin_arktools\src\utils\database.py", line 56, in init_db await ArknightsDB.init_data() File "C:\Users\10953\AppData\Roaming\Python\Python310\site-packages\nonebot_plugin_arktools\src\utils\database.py", line 70, in init_data await ArknightsDB._init_building_buff(force) File "C:\Users\10953\AppData\Roaming\Python\Python310\site-packages\nonebot_plugin_arktools\src\utils\database.py", line 94, in _init_building_buff data = json.loads(data) File "C:\Program Files\Python310\lib\json\init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Program Files\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\Python310\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)`
另外打开json文件时没有内容,只有一句“invalid input!”
所有json都无法获取到数据
未复现,请检查以下可能的导致报错的原因:
那有可能就是代理的问题了,服务器挂了代理。
使用命令 "更新方舟素材" 报错