-
Notifications
You must be signed in to change notification settings - Fork 48
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
无法发送图片/‘File target does not exist' #88
Labels
help wanted
Extra attention is needed
Comments
后者修了 请 |
同样报错
库版本
|
由mirai-api-http错误代码,该错误是由于发送至不存在的群组/用户而导致的,大概率是mirai的问题,目前需要稳定的复现步骤 |
抱歉久等了,已经查明是python-mirai-core对上传文件的处理有问题,当EFB和mirai不在同一环境下时就会触发,稍晚会推送更新 |
milkice233
added a commit
to NatriumLab/python-mirai-core
that referenced
this issue
Sep 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
向QQ好友单独发图片会出现:
2021-06-07 17:02:17,523 [ERROR]: efb_telegram_master.master_message (master_message.process_telegram_message; master_message.py:410)
Message is not sent. (update: {'update_id': 299138439, 'message': {'message_id': 47, 'date': 1623056536, 'chat': {'id': -1001470110229, 'type': 'supergroup', 'title': 'Liu'}, 'entities': [], 'caption_entities': [], 'photo': [{'file_id': 'AgACAgUAAx0CV6AaFQADL2C94Jivq0UT3V3hFsL0vZykQKPgAALyqzEbcIzwVXm1ELiX42Nn_mmVcnQAAwEAAwIAA3MAA9NAAAIfBA', 'file_unique_id': 'AQAD_mmVcnQAA9NAAAI', 'width': 51, 'height': 90, 'file_size': 987}, {'file_id': 'AgACAgUAAx0CV6AaFQADL2C94Jivq0UT3V3hFsL0vZykQKPgAALyqzEbcIzwVXm1ELiX42Nn_mmVcnQAAwEAAwIAA20AA9JAAAIfBA', 'file_unique_id': 'AQAD_mmVcnQAA9JAAAI', 'width': 180, 'height': 320, 'file_size': 9195}, {'file_id': 'AgACAgUAAx0CV6AaFQADL2C94Jivq0UT3V3hFsL0vZykQKPgAALyqzEbcIzwVXm1ELiX42Nn_mmVcnQAAwEAAwIAA3gAA9RAAAIfBA', 'file_unique_id': 'AQAD_mmVcnQAA9RAAAI', 'width': 450, 'height': 800, 'file_size': 33467}, {'file_id': 'AgACAgUAAx0CV6AaFQADL2C94Jivq0UT3V3hFsL0vZykQKPgAALyqzEbcIzwVXm1ELiX42Nn_mmVcnQAAwEAAwIAA3kAA9VAAAIfBA', 'file_unique_id': 'AQAD_mmVcnQAA9VAAAI', 'width': 720, 'height': 1280, 'file_size': 49492}], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 1314933779, 'first_name': 'シノク', 'is_bot': False, 'last_name': '岩井', 'username': 'sosueyakiko', 'language_code': 'ja'}}}, exception: File target does not exist)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/efb_telegram_master/master_message.py", line 393, in process_telegram_message
slave_msg = coordinator.send_message(m)
File "/usr/local/lib/python3.8/dist-packages/ehforwarderbot/coordinator.py", line 113, in send_message
return slaves[msg.deliver_to.channel_id].send_message(msg)
File "/usr/local/lib/python3.8/dist-packages/efb_qq_slave/init.py", line 80, in send_message
return self.QQClient.send_message(msg)
File "/usr/local/lib/python3.8/dist-packages/efb_qq_plugin_mirai/mirai.py", line 199, in send_message
return_message = self.mirai_send_messages(chat_type, chat_info, messages)
File "/usr/local/lib/python3.8/dist-packages/efb_qq_plugin_mirai/mirai.py", line 413, in mirai_send_messages
return asyncio.run_coroutine_threadsafe(self.bot.send_message(target=target,
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
raise self._exception
File "/usr/local/lib/python3.8/dist-packages/mirai_core/bot.py", line 26, in wrapper
return await func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/mirai_core/bot.py", line 166, in send_message
result = await self.session.post(portal, data=data)
File "/usr/local/lib/python3.8/dist-packages/mirai_core/network.py", line 101, in post
return await HttpClient._check_response(response, url, 'post')
File "/usr/local/lib/python3.8/dist-packages/mirai_core/network.py", line 58, in _check_response
raise error_codestatus_code
mirai_core.exceptions.UnknownTargetException: File target does not exist
另外使用/update_info 可以正常更新QQ群的群名称和头像到tg群组,但是单人的不行
The text was updated successfully, but these errors were encountered: