aiocqhttp.exceptions.ApiNotAvailable
satouriko opened this issue · 1 comments
satouriko commented
同样的代码发送文本(小的消息)没事,发送图片(base64编码,较大)抛出 ApiNotAvailable 异常,怀疑跟 Websocket Fragmentation 有关 kyubotics/coolq-http-api#85
ujson module not found, using json
msgpack not installed, MsgPackSerializer unavailable
Task exception was never retrieved
future: <Task finished coro=<main_loop() done, defined at /nijigasaki-bot/nijigasaki/app/twitter.py:28> exception=ApiNotAvailable()>
Traceback (most recent call last):
File "/nijigasaki-bot/nijigasaki/app/twitter.py", line 32, in main_loop
await do_feed()
File "/nijigasaki-bot/nijigasaki/app/twitter.py", line 59, in do_feed
f"{tweet['id_str']}_{idx}")
File "/nijigasaki-bot/nijigasaki/app/twitter.py", line 94, in fetch_and_push_img
'twitter', f"[CQ:image,file=base64://{base64.b64encode(resp).decode('ascii')}]")
File "/nijigasaki-bot/nijigasaki/model/subject.py", line 115, in push_update
await get_bot().send_msg(**ctx, message=content)
File "/usr/local/lib/python3.6/site-packages/aiocqhttp/api.py", line 184, in call_action
raise ApiNotAvailable
aiocqhttp.exceptions.ApiNotAvailable
stdrc commented
测试了一下,似乎没毛病,可能当时连接有问题吧