Todysheep / nonebot_plugin_bottle

Bottle post plugin in Nonebot
GNU General Public License v3.0
33 stars 12 forks source link

接入百度内容审核api不响应? #63

Closed zhzhongshi closed 9 months ago

zhzhongshi commented 9 months ago
12-25 17:13:57 [SUCCESS] nonebot | OneBot V11 102072002 | [message.group.normal]: Message 310009960 from 3365615175@[群:595405470] '/扔漂流瓶 这只是个测试= ='
12-25 17:13:57 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_bottle, lineno=65)
12-25 17:13:57 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_bottle, lineno=65) running complete
12-25 17:13:57 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_bottle, lineno=65) failed.
Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/root/qqbot/nb2/lib/python3.10/site-packages/nonebot/__init__.py", line 331, in run
    get_driver().run(*args, **kwargs)
  File "/root/qqbot/nb2/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 201, in run
    uvicorn.run(
  File "/root/qqbot/nb2/lib/python3.10/site-packages/uvicorn/main.py", line 587, in run
    server.run()
  File "/root/qqbot/nb2/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/root/qqbot/nb2/lib/python3.10/site-packages/nonebot/message.py", line 476, in check_and_run_matcher
    await _run_matcher(
> File "/root/qqbot/nb2/lib/python3.10/site-packages/nonebot/message.py", line 428, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "/root/qqbot/nb2/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 846, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "/root/qqbot/nb2/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 821, in simple_run
    await handler(
  File "/root/qqbot/nb2/lib/python3.10/site-packages/nonebot/dependencies/__init__.py", line 113, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "/root/qqbot/nb2/lib/python3.10/site-packages/nonebot_plugin_bottle/__init__.py", line 171, in _
    elif audit["conclusion"] == "不合规":
KeyError: 'conclusion'
zhzhongshi commented 9 months ago

是api额度没有。。