ehForwarderBot / efb-telegram-master

EFB Telegram Master Channel, a channel for EH Forwarder Bot.
GNU Affero General Public License v3.0
223 stars 78 forks source link

[BUG] cant send large file when use local telegram api #127

Closed zsbai closed 1 year ago

zsbai commented 1 year ago

An error occurs when using the self-built api with --local to accept small file(<20m) from the wechat slave

     All middlewares are initialized.
2022-09-09 08:40:20,729 [ERROR]: efb_telegram_master.slave_message (slave_message.send_message; slave_message.py:123)
    Error occurred while processing message from slave channel.
Message: <Message, <ETMSelfChatMember: You (__self__) @ <ETMPrivateChat: 接收者 (xxxx) @ 💬WeChat Slave (blueset.wechat)>>@<ETMPrivateChat: 接收者(xxxx) @ 💬WeChat Slave (blueset.wechat)> [File]: 我的文件.pdf; Attributes: None; Delivering to: <efb_telegram_master.TelegramChannel object at 0x7f480abbc460>; Edited: False; System message: False; Substitutions: None; Target messages: None; UID: [["805520846334248486"]]; Reactions: {}; File: <tempfile._TemporaryFileWrapper object at 0x7f48082a5a90> 我的文件.pdf @ /tmp/tmpj7pesnxn), application/pdf; Vendor: {}>
FileNotFoundError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 121, in send_message
    self.dispatch_message(msg, msg_template, old_msg_id, tg_dest, silent)
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 191, in dispatch_message
    tg_msg = self.slave_message_file(msg, tg_dest, msg_template, reactions, old_msg_id, target_msg_id,
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 706, in slave_message_file
    return self.bot.send_document(tg_dest, file,
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 94, in caption_affix
    is_empty = self._detect_empty_file(file, chat, text, prefix, suffix)
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 584, in _detect_empty_file
    empty = os.stat(file).st_size == 0
FileNotFoundError: [Errno 2] No such file or directory: 'file:///tmp/tmpj7pesnxn'

and another error will occour when a big file(>20m) send from tg-master to wechat-slave:

Message is not sent.

Error from Web WeChat while sending file: [-1000] 返回值不带BaseResponse
blueset commented 1 year ago

Is the first issue reproducible? If so, can you send a complete verbose log begin from when the message is sent until the error occurs?

zsbai commented 1 year ago

Is the first issue reproducible? If so, can you send a complete verbose log begin from when the message is sent until the error occurs?

another terrible bug occur. When i add argument -v, efb resent all the messages I have sent since last night, and the log is filled with logs of sent messages. Now that I have terminated the program, I don't know if efb will send old messages again when I start it again with -v ... By the way, all is fine when efb start without -v

zsbai commented 1 year ago

here is the complete verbose log (I send "测试" text first, and then send a file called “这是测试文件.pdf”):

022-09-11 11:15:21,955 [DEBUG]: telegram.bot (bot.decorator; bot.py:135)
    Exiting: send_chat_action
2022-09-11 11:15:21,955 [DEBUG]: telegram.bot (bot.decorator; bot.py:132)
    Entering: send_message
2022-09-11 11:15:22,107 [DEBUG]: telegram.bot (bot.decorator; bot.py:134)
    {'date': 1662894922, 'message_id': 17123, 'delete_chat_photo': False, 'chat': {'id': -586986486, 'type': 'group', 'all_members_are_administrators': True, 'title': '💬👤 我方口古巨兽已入场'}, 'group_chat_created': False, 'text': 'You:\n测试', 'entities': [], 'channel_chat_created': False, 'supergroup_chat_created': False, 'new_chat_photo': [], 'photo': [], 'new_chat_members': [], 'caption_entities': [], 'from': {'username': 'baiiylu_wechat_bot', 'is_bot': True, 'first_name': 'WeChat bot', 'id': 5430916220}}
2022-09-11 11:15:22,107 [DEBUG]: telegram.bot (bot.decorator; bot.py:135)
    Exiting: send_message
2022-09-11 11:15:22,108 [DEBUG]: efb_telegram_master.slave_message (slave_message.slave_message_text; slave_message.py:341)
    [[["132146071093312695"]]] Processed and sent as text message
2022-09-11 11:15:22,108 [DEBUG]: efb_telegram_master.slave_message (slave_message.dispatch_message; slave_message.py:220)
    [[["132146071093312695"]]] Message is sent to the user with telegram message id -586986486.17123.
2022-09-11 11:15:22,108 [DEBUG]: efb_telegram_master.db (db.add_or_update_message_log; db.py:384)
    [-586986486.17123] Received message logging request of [["132146071093312695"]]
2022-09-11 11:15:22,109 [DEBUG]: peewee (peewee.execute_sql; peewee.py:3185)
    ('SELECT "t1"."master_msg_id", "t1"."master_msg_id_alt", "t1"."slave_message_id", "t1"."text", "t1"."slave_origin_uid", "t1"."slave_origin_display_name", "t1"."slave_member_uid", "t1"."slave_member_display_name", "t1"."media_type", "t1"."mime", "t1"."file_id", "t1"."file_unique_id", "t1"."msg_type", "t1"."pickle", "t1"."sent_to", "t1"."time" FROM "msglog" AS "t1" WHERE ("t1"."master_msg_id" = ?) LIMIT ? OFFSET ?', ['-586986486.17123', 1, 0])
2022-09-11 11:15:22,110 [DEBUG]: efb_telegram_master.db (db.add_or_update_message_log; db.py:401)
    [-586986486.17123] Message record is not found in database, insert it
2022-09-11 11:15:22,110 [DEBUG]: peewee.sqliteq (sqliteq.execute; sqliteq.py:176)
    received query INSERT INTO "msglog" ("master_msg_id", "master_msg_id_alt", "slave_message_id", "text", "slave_origin_uid", "slave_member_uid", "media_type", "mime", "file_id", "file_unique_id", "msg_type", "sent_to", "time") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2022-09-11 11:15:22,110 [DEBUG]: peewee (peewee.execute_sql; peewee.py:3185)
    ('INSERT INTO "msglog" ("master_msg_id", "master_msg_id_alt", "slave_message_id", "text", "slave_origin_uid", "slave_member_uid", "media_type", "mime", "file_id", "file_unique_id", "msg_type", "sent_to", "time") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', ['-586986486.17123', None, '[["132146071093312695"]]', '测试', 'blueset.wechat c304a539', 'blueset.wechat __self__ c304a539', 'Text', None, None, None, 'Text', 'blueset.telegram', datetime.datetime(2022, 9, 11, 11, 15, 22, 110065)])
2022-09-11 11:15:22,126 [DEBUG]: efb_telegram_master.db (db.add_or_update_message_log; db.py:420)
    [-586986486.17123] Database insert/update outcome: 1
2022-09-11 11:15:28,292 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://webpush.wx2.qq.com:443 "GET /cgi-bin/mmwebwx-bin/synccheck?r=1662894921904&skey=&sid=EK0GVBTMSZSLr%2FRj&uin=3487292145&deviceid=e035136146293351&synckey=1_725841755%7C2_725842844%7C3_725842766%7C11_725842800%7C23_1662894894%7C24_1662894920%7C27_1055660%7C201_1662894920%7C203_1662894464%7C206_103%7C1000_1662882661%7C1001_1662882722&_=1662894908460 HTTP/1.1" 200 43
2022-09-11 11:15:28,495 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://wx2.qq.com:443 "POST /cgi-bin/mmwebwx-bin/webwxsync?sid=EK0GVBTMSZSLr/Rj&skey=&pass_ticket=e722175216799702 HTTP/1.1" 200 778
2022-09-11 11:15:28,551 [DEBUG]: efb_wechat_slave.vendor.wxpy.api.bot (bot._process_message; bot.py:449)
    <Bot: 白白白鹭จุ๊บ>: new message (func: thread_wrapper):
↪ 我方口古巨兽已入场 : 测试 (Text)
2022-09-11 11:15:28,551 [DEBUG]: efb_wechat_slave.vendor.wxpy.api.bot (misc.start_new_thread; misc.py:417)
    new thread: _process_message
2022-09-11 11:15:28,552 [DEBUG]: efb_wechat_slave.slave_message (slave_message.wrap_func; slave_message.py:73)
    [1383416964596214134] Raw message: <Message: {'MsgId': '1383416964596214134', 'FromUserName': '@169ff79660cfbadc4a70df0ca89ee5fe434aa584e0c497f68d491334df79128b', 'ToUserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'MsgType': 1, 'Content': '测试', 'Status': 3, 'ImgStatus': 1, 'CreateTime': 1662894928, 'VoiceLength': 0, 'PlayLength': 0, 'FileName': '', 'FileSize': '', 'MediaId': '', 'Url': '', 'AppMsgType': 0, 'StatusNotifyCode': 0, 'StatusNotifyUserName': '', 'RecommendInfo': {'UserName': '', 'NickName': '', 'QQNum': 0, 'Province': '', 'City': '', 'Content': '', 'Signature': '', 'Alias': '', 'Scene': 0, 'VerifyFlag': 0, 'AttrStatus': 0, 'Sex': 0, 'Ticket': '', 'OpCode': 0}, 'ForwardFlag': 0, 'AppInfo': {'AppID': '', 'Type': 0}, 'HasProductId': 0, 'Ticket': '', 'ImgHeight': 0, 'ImgWidth': 0, 'SubMsgType': 0, 'NewMsgId': 1383416964596214134, 'OriContent': '', 'EncryFileName': '', 'User': <User: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'NickName': '我方口古巨兽已入场', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=669983063&username=@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee&skey=', 'ContactFlag': 134217729, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 2, 'Signature': '', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'WFKGJSYRC', 'PYQuanPin': 'wofangkougujushouyiruchang', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 102439, 'Province': 'Niznij Novgorod', 'City': '', 'Alias': '', 'SnsFlag': 256, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '', 'IsOwner': 0}>, 'Type': 'Text', 'Text': '测试'}>
2022-09-11 11:15:28,554 [DEBUG]: efb_wechat_slave.slave_message (slave_message.wrap_func; slave_message.py:98)
    [[["1383416964596214134"]]] Chat: <PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>, Author: <SelfChatMember: You (__self__) @ <PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>>
2022-09-11 11:15:28,554 [DEBUG]: plugins.catbaron.mp_instantview.MPInstantViewMiddleware (__init__.process_url; __init__.py:95)
    Failed to process mp url!
2022-09-11 11:15:28,554 [DEBUG]: plugins.catbaron.mp_instantview.MPInstantViewMiddleware (__init__.process_url; __init__.py:96)
    'NoneType' object has no attribute 'url'
2022-09-11 11:15:28,555 [DEBUG]: efb_telegram_master.slave_message (slave_message.send_message; slave_message.py:92)
    [[["1383416964596214134"]]] Slave message delivered to ETM.
<Message, <SelfChatMember: You (__self__) @ <PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>>@<PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)> [Text]: 测试; [["1383416964596214134"]]>
2022-09-11 11:15:28,555 [DEBUG]: efb_telegram_master.chat_object_cache (chat_object_cache.update_chat_obj; chat_object_cache.py:146)
    Trying to update key ('blueset.wechat', 'c304a539') with object <PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>. Full update: False
2022-09-11 11:15:28,555 [DEBUG]: efb_telegram_master.chat_object_cache (chat_object_cache.update_chat_obj; chat_object_cache.py:152)
    Cached object found with key ('blueset.wechat', 'c304a539').
2022-09-11 11:15:28,555 [DEBUG]: peewee (peewee.execute_sql; peewee.py:3185)
    ('SELECT "t1"."slave_uid", "t1"."master_uid" FROM "chatassoc" AS "t1" WHERE ("t1"."slave_uid" = ?)', ['blueset.wechat c304a539'])
2022-09-11 11:15:28,556 [DEBUG]: efb_telegram_master.slave_message (slave_message.get_slave_msg_dest; slave_message.py:248)
    [[["1383416964596214134"]]] The message should deliver to blueset.telegram -586986486
2022-09-11 11:15:28,556 [DEBUG]: peewee (peewee.execute_sql; peewee.py:3185)
    ('SELECT "t1"."slave_uid", "t1"."master_uid" FROM "chatassoc" AS "t1" WHERE ("t1"."master_uid" = ?)', ['blueset.telegram -586986486'])
2022-09-11 11:15:28,556 [DEBUG]: efb_telegram_master.slave_message (slave_message.get_slave_msg_dest; slave_message.py:256)
    [[["1383416964596214134"]]] Message is in chat <ETMPrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>
2022-09-11 11:15:28,556 [DEBUG]: efb_telegram_master.slave_message (slave_message.get_slave_msg_dest; slave_message.py:267)
    [[["1383416964596214134"]]] Message is sent to Telegram chat -586986486, with header "You:".
2022-09-11 11:15:28,557 [DEBUG]: efb_telegram_master.slave_message (slave_message.slave_message_text; slave_message.py:321)
    [[["1383416964596214134"]]] Sending as a text message.
2022-09-11 11:15:28,557 [DEBUG]: telegram.bot (bot.decorator; bot.py:132)
    Entering: send_chat_action
2022-09-11 11:15:28,652 [DEBUG]: telegram.bot (bot.decorator; bot.py:134)
    True
2022-09-11 11:15:28,652 [DEBUG]: telegram.bot (bot.decorator; bot.py:135)
    Exiting: send_chat_action
2022-09-11 11:15:28,652 [DEBUG]: telegram.bot (bot.decorator; bot.py:132)
    Entering: send_message
2022-09-11 11:15:28,760 [DEBUG]: telegram.bot (bot.decorator; bot.py:134)
    {'date': 1662894928, 'message_id': 17124, 'delete_chat_photo': False, 'chat': {'id': -586986486, 'type': 'group', 'all_members_are_administrators': True, 'title': '💬👤 我方口古巨兽已入场'}, 'group_chat_created': False, 'text': 'You:\n测试', 'entities': [], 'channel_chat_created': False, 'supergroup_chat_created': False, 'new_chat_photo': [], 'photo': [], 'new_chat_members': [], 'caption_entities': [], 'from': {'username': 'baiiylu_wechat_bot', 'is_bot': True, 'first_name': 'WeChat bot', 'id': 5430916220}}
2022-09-11 11:15:28,760 [DEBUG]: telegram.bot (bot.decorator; bot.py:135)
    Exiting: send_message
2022-09-11 11:15:28,761 [DEBUG]: efb_telegram_master.slave_message (slave_message.slave_message_text; slave_message.py:341)
    [[["1383416964596214134"]]] Processed and sent as text message
2022-09-11 11:15:28,761 [DEBUG]: efb_telegram_master.slave_message (slave_message.dispatch_message; slave_message.py:220)
    [[["1383416964596214134"]]] Message is sent to the user with telegram message id -586986486.17124.
2022-09-11 11:15:28,761 [DEBUG]: efb_telegram_master.db (db.add_or_update_message_log; db.py:384)
    [-586986486.17124] Received message logging request of [["1383416964596214134"]]
2022-09-11 11:15:28,762 [DEBUG]: peewee (peewee.execute_sql; peewee.py:3185)
    ('SELECT "t1"."master_msg_id", "t1"."master_msg_id_alt", "t1"."slave_message_id", "t1"."text", "t1"."slave_origin_uid", "t1"."slave_origin_display_name", "t1"."slave_member_uid", "t1"."slave_member_display_name", "t1"."media_type", "t1"."mime", "t1"."file_id", "t1"."file_unique_id", "t1"."msg_type", "t1"."pickle", "t1"."sent_to", "t1"."time" FROM "msglog" AS "t1" WHERE ("t1"."master_msg_id" = ?) LIMIT ? OFFSET ?', ['-586986486.17124', 1, 0])
2022-09-11 11:15:28,763 [DEBUG]: efb_telegram_master.db (db.add_or_update_message_log; db.py:401)
    [-586986486.17124] Message record is not found in database, insert it
2022-09-11 11:15:28,763 [DEBUG]: peewee.sqliteq (sqliteq.execute; sqliteq.py:176)
    received query INSERT INTO "msglog" ("master_msg_id", "master_msg_id_alt", "slave_message_id", "text", "slave_origin_uid", "slave_member_uid", "media_type", "mime", "file_id", "file_unique_id", "msg_type", "sent_to", "time") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2022-09-11 11:15:28,763 [DEBUG]: peewee (peewee.execute_sql; peewee.py:3185)
    ('INSERT INTO "msglog" ("master_msg_id", "master_msg_id_alt", "slave_message_id", "text", "slave_origin_uid", "slave_member_uid", "media_type", "mime", "file_id", "file_unique_id", "msg_type", "sent_to", "time") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', ['-586986486.17124', None, '[["1383416964596214134"]]', '测试', 'blueset.wechat c304a539', 'blueset.wechat __self__ c304a539', 'Text', None, None, None, 'Text', 'blueset.telegram', datetime.datetime(2022, 9, 11, 11, 15, 28, 763150)])
2022-09-11 11:15:28,770 [DEBUG]: efb_telegram_master.db (db.add_or_update_message_log; db.py:420)
    [-586986486.17124] Database insert/update outcome: 1
2022-09-11 11:15:31,815 [DEBUG]: telegram.bot (bot.get_updates; bot.py:3068)
    No new updates found.
2022-09-11 11:15:31,815 [DEBUG]: telegram.bot (bot.decorator; bot.py:134)
    []
2022-09-11 11:15:31,815 [DEBUG]: telegram.bot (bot.decorator; bot.py:135)
    Exiting: get_updates
2022-09-11 11:15:31,816 [DEBUG]: telegram.bot (bot.decorator; bot.py:132)
    Entering: get_updates
2022-09-11 11:15:32,766 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://webpush.wx2.qq.com:443 "GET /cgi-bin/mmwebwx-bin/synccheck?r=1662894928497&skey=&sid=EK0GVBTMSZSLr%2FRj&uin=3487292145&deviceid=e486075902036265&synckey=1_725841755%7C2_725842845%7C3_725842766%7C11_725842800%7C23_1662894894%7C24_1662894928%7C27_1055661%7C201_1662894928%7C203_1662894464%7C206_103%7C1000_1662882661%7C1001_1662882722&_=1662894908461 HTTP/1.1" 200 43
2022-09-11 11:15:32,961 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://wx2.qq.com:443 "POST /cgi-bin/mmwebwx-bin/webwxsync?sid=EK0GVBTMSZSLr/Rj&skey=&pass_ticket=e722175216799702 HTTP/1.1" 200 390
2022-09-11 11:15:33,296 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://webpush.wx2.qq.com:443 "GET /cgi-bin/mmwebwx-bin/synccheck?r=1662894932963&skey=&sid=EK0GVBTMSZSLr%2FRj&uin=3487292145&deviceid=e430736283231398&synckey=1_725841755%7C2_725842846%7C3_725842766%7C11_725842800%7C23_1662894894%7C24_1662894932%7C27_1055662%7C201_1662894928%7C203_1662894464%7C206_103%7C1000_1662882661%7C1001_1662882722&_=1662894908462 HTTP/1.1" 200 43
2022-09-11 11:15:33,559 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://wx2.qq.com:443 "POST /cgi-bin/mmwebwx-bin/webwxsync?sid=EK0GVBTMSZSLr/Rj&skey=&pass_ticket=e722175216799702 HTTP/1.1" 200 2097
2022-09-11 11:15:33,567 [DEBUG]: efb_wechat_slave.vendor.wxpy.api.bot (bot._process_message; bot.py:449)
    <Bot: 白白白鹭จุ๊บ>: new message (func: thread_wrapper):
↪ 我方口古巨兽已入场 : (Attachment)
2022-09-11 11:15:33,569 [DEBUG]: efb_wechat_slave.vendor.wxpy.api.bot (misc.start_new_thread; misc.py:417)
    new thread: _process_message
2022-09-11 11:15:33,569 [DEBUG]: efb_wechat_slave.slave_message (slave_message.wrap_func; slave_message.py:73)
    [5158292967946718888] Raw message: <Message: {'MsgId': '5158292967946718888', 'FromUserName': '@169ff79660cfbadc4a70df0ca89ee5fe434aa584e0c497f68d491334df79128b', 'ToUserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'MsgType': 49, 'Content': '<?xml version="1.0"?>\n<msg>\n\t<appmsg appid="wxeb7ec651dd0aefa9" sdkver="0">\n\t\t<title>这是测试文件.pdf</title>\n\t\t<des />\n\t\t<type>6</type>\n\t\t<appattach>\n\t\t\t<totallen>537266</totallen>\n\t\t\t<fileext>pdf</fileext>\n\t\t\t<attachid>@cdn_3057020100044b30490201000204115d7f8602032f4ef20204b6bace6f0204631dbd17042431626166343362662d663562332d343430322d613864652d6430663962343035333863300204011400050201000405004c51e600_656167737479636975686576716b7762_1</attachid>\n\t\t\t<cdnattachurl>3057020100044b30490201000204115d7f8602032f4ef20204b6bace6f0204631dbd17042431626166343362662d663562332d343430322d613864652d6430663962343035333863300204011400050201000405004c51e600</cdnattachurl>\n\t\t\t<cdnthumbaeskey />\n\t\t\t<aeskey>656167737479636975686576716b7762</aeskey>\n\t\t\t<encryver>0</encryver>\n\t\t\t<filekey>wxid_up3a18mdigqw12_35_1662894932</filekey>\n\t\t\t<overwrite_newmsgid>3587593215620376006</overwrite_newmsgid>\n\t\t\t<fileuploadtoken>v1_YMRBd+ATZKtnr4PEjD3X1sJNMB27IKFCT9HWL+Lf2lNeOp9jcJ35RV5EUmaeSZGpfu1NRvpokrxntn1gqOCxqfbjEjyvVsJ7rmA8/cJREFtSZqYBH2fxd1LGexFd+Ugy4+FwBh6W6fIdy/Pc/5imGyPmgwX4uRPlJlnVKXWhbNct0d3VRKHWkrC3boB6e4cGY7RE8FnIhgxevrnoL3du2hdZLdGQtotWbSzuoUCB6dXTIuq62Mev6lrK+0whUoylzGhc2pSV</fileuploadtoken>\n\t\t</appattach>\n\t\t<md5>d45d26621785ce1352a3fd18cc5e4dd4</md5>\n\t\t<recorditem><![CDATA[(null)]]></recorditem>\n\t</appmsg>\n\t<fromusername></fromusername>\n\t<scene>0</scene>\n\t<appinfo>\n\t\t<version>34</version>\n\t\t<appname>微信网页版</appname>\n\t</appinfo>\n\t<commenturl></commenturl>\n</msg>\n', 'Status': 3, 'ImgStatus': 1, 'CreateTime': 1662894933, 'VoiceLength': 0, 'PlayLength': 0, 'FileName': '这是测试文件.pdf', 'FileSize': '537266', 'MediaId': '@crypt_f92233d2_f949d21d3e6e5eafab2e92ac0a101762970675f366aaa609e7a82623c9a8b0f83d621b64595777acdc642a1f773e9e989bfbf82e5ad9ba0adc420d782e7752a7cdb03407f804895a01f9b0f91b049d6197343759ea56963dabbe74359b575060a7c6e15a6e0aecb1e29bcb32c8ce73f38a6e3a781b381415c7f9bde96757f23d8267a0bbf29162085c69753b51210cbe9b6e37ffa2b82793657f88299521c416b795a842b5b79214a6c1db2554b29b0f0257654b6cddd3bf38f5fadb626302f96dd30fd6f1d646db5832a82ebba4d7a6da778202dac36f6ee59e67bd472e4c98', 'Url': '', 'AppMsgType': 6, 'StatusNotifyCode': 0, 'StatusNotifyUserName': '', 'RecommendInfo': {'UserName': '', 'NickName': '', 'QQNum': 0, 'Province': '', 'City': '', 'Content': '', 'Signature': '', 'Alias': '', 'Scene': 0, 'VerifyFlag': 0, 'AttrStatus': 0, 'Sex': 0, 'Ticket': '', 'OpCode': 0}, 'ForwardFlag': 0, 'AppInfo': {'AppID': 'wxeb7ec651dd0aefa9', 'Type': 0}, 'HasProductId': 0, 'Ticket': '', 'ImgHeight': 0, 'ImgWidth': 0, 'SubMsgType': 0, 'NewMsgId': 5158292967946718888, 'OriContent': '', 'EncryFileName': '2022%E5%B9%B49%2D12%E6%9C%88%E9%9B%85%E6%80%9D%E5%8F%A3%E8%AF%AD%E6%96%B0%E9%A2%98%E5%BA%93%209%2E6%20%E6%8A%A2%E9%B2%9C%E7%89%88%2Epdf', 'User': <User: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'NickName': '我方口古巨兽已入场', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=669983063&username=@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee&skey=', 'ContactFlag': 134217729, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 2, 'Signature': '', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'WFKGJSYRC', 'PYQuanPin': 'wofangkougujushouyiruchang', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 102439, 'Province': 'Niznij Novgorod', 'City': '', 'Alias': '', 'SnsFlag': 256, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '', 'IsOwner': 0}>, 'Type': 'Attachment', 'Text': <function get_attachment_download_fn.<locals>.download_atta at 0x7f8b1a675f70>}>
2022-09-11 11:15:33,570 [DEBUG]: efb_wechat_slave.vendor.wxpy.api.messages.message (message.get_file; message.py:138)
    [<function get_attachment_download_fn.<locals>.download_atta at 0x7f8b1a675f70>] Calling downloader function ID 140235420163952
2022-09-11 11:15:33,572 [DEBUG]: urllib3.connectionpool (connectionpool._new_conn; connectionpool.py:973)
    Starting new HTTPS connection (1): file.wx2.qq.com:443
2022-09-11 11:15:33,639 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://webpush.wx2.qq.com:443 "GET /cgi-bin/mmwebwx-bin/synccheck?r=1662894933561&skey=&sid=EK0GVBTMSZSLr%2FRj&uin=3487292145&deviceid=e838929903808678&synckey=1_725841755%7C2_725842847%7C3_725842766%7C11_725842800%7C23_1662894894%7C24_1662894933%7C27_1055663%7C201_1662894933%7C203_1662894464%7C206_103%7C1000_1662882661%7C1001_1662882722&_=1662894908463 HTTP/1.1" 200 43
2022-09-11 11:15:33,832 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://wx2.qq.com:443 "POST /cgi-bin/mmwebwx-bin/webwxsync?sid=EK0GVBTMSZSLr/Rj&skey=&pass_ticket=e722175216799702 HTTP/1.1" 200 389
2022-09-11 11:15:33,905 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://webpush.wx2.qq.com:443 "GET /cgi-bin/mmwebwx-bin/synccheck?r=1662894933833&skey=&sid=EK0GVBTMSZSLr%2FRj&uin=3487292145&deviceid=e304467176358720&synckey=1_725841755%7C2_725842847%7C3_725842766%7C11_725842800%7C23_1662894894%7C24_1662894933%7C27_1055663%7C201_1662894933%7C203_1662894464%7C206_103%7C1000_1662882661%7C1001_1662882722&_=1662894908464 HTTP/1.1" 200 43
2022-09-11 11:15:34,109 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://wx2.qq.com:443 "POST /cgi-bin/mmwebwx-bin/webwxsync?sid=EK0GVBTMSZSLr/Rj&skey=&pass_ticket=e722175216799702 HTTP/1.1" 200 763
2022-09-11 11:15:34,111 [DEBUG]: itchat (messages.produce_msg; messages.py:226)
    Useless message received: 51
{'MsgId': '7556407761113158839', 'FromUserName': '@169ff79660cfbadc4a70df0ca89ee5fe434aa584e0c497f68d491334df79128b', 'ToUserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'MsgType': 51, 'Content': '', 'Status': 3, 'ImgStatus': 1, 'CreateTime': 1662894933, 'VoiceLength': 0, 'PlayLength': 0, 'FileName': '', 'FileSize': '', 'MediaId': '', 'Url': '', 'AppMsgType': 0, 'StatusNotifyCode': 1, 'StatusNotifyUserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'RecommendInfo': {'UserName': '', 'NickName': '', 'QQNum': 0, 'Province': '', 'City': '', 'Content': '', 'Signature': '', 'Alias': '', 'Scene': 0, 'VerifyFlag': 0, 'AttrStatus': 0, 'Sex': 0, 'Ticket': '', 'OpCode': 0}, 'ForwardFlag': 0, 'AppInfo': {'AppID': '', 'Type': 0}, 'HasProductId': 0, 'Ticket': '', 'ImgHeight': 0, 'ImgWidth': 0, 'SubMsgType': 0, 'NewMsgId': 7556407761113158839, 'OriContent': '', 'EncryFileName': '', 'User': <User: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'NickName': '我方口古巨兽已入场', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=669983063&username=@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee&skey=', 'ContactFlag': 134217729, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 2, 'Signature': '', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'WFKGJSYRC', 'PYQuanPin': 'wofangkougujushouyiruchang', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 102439, 'Province': 'Niznij Novgorod', 'City': '', 'Alias': '', 'SnsFlag': 256, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '', 'IsOwner': 0}>}
2022-09-11 11:15:34,116 [DEBUG]: efb_wechat_slave.vendor.wxpy.api.bot (bot._process_message; bot.py:449)
    <Bot: 白白白鹭จุ๊บ>: new message (func: thread_wrapper):
↪ 我方口古巨兽已入场 : UselessMsg (Useless)
2022-09-11 11:15:34,116 [DEBUG]: efb_wechat_slave.vendor.wxpy.api.bot (misc.start_new_thread; misc.py:417)
    new thread: _process_message
2022-09-11 11:15:34,117 [DEBUG]: efb_wechat_slave.slave_message (slave_message.wrap_func; slave_message.py:73)
    [7556407761113158839] Raw message: <Message: {'MsgId': '7556407761113158839', 'FromUserName': '@169ff79660cfbadc4a70df0ca89ee5fe434aa584e0c497f68d491334df79128b', 'ToUserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'MsgType': 51, 'Content': '', 'Status': 3, 'ImgStatus': 1, 'CreateTime': 1662894933, 'VoiceLength': 0, 'PlayLength': 0, 'FileName': '', 'FileSize': '', 'MediaId': '', 'Url': '', 'AppMsgType': 0, 'StatusNotifyCode': 1, 'StatusNotifyUserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'RecommendInfo': {'UserName': '', 'NickName': '', 'QQNum': 0, 'Province': '', 'City': '', 'Content': '', 'Signature': '', 'Alias': '', 'Scene': 0, 'VerifyFlag': 0, 'AttrStatus': 0, 'Sex': 0, 'Ticket': '', 'OpCode': 0}, 'ForwardFlag': 0, 'AppInfo': {'AppID': '', 'Type': 0}, 'HasProductId': 0, 'Ticket': '', 'ImgHeight': 0, 'ImgWidth': 0, 'SubMsgType': 0, 'NewMsgId': 7556407761113158839, 'OriContent': '', 'EncryFileName': '', 'User': <User: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee', 'NickName': '我方口古巨兽已入场', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=669983063&username=@3df19d861848e23f811f4f998cc40c12ae705898c6c1d53ccb0377dc448008ee&skey=', 'ContactFlag': 134217729, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 2, 'Signature': '', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'WFKGJSYRC', 'PYQuanPin': 'wofangkougujushouyiruchang', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 102439, 'Province': 'Niznij Novgorod', 'City': '', 'Alias': '', 'SnsFlag': 256, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '', 'IsOwner': 0}>, 'Type': 'Useless', 'Text': 'UselessMsg'}>
2022-09-11 11:15:34,618 [DEBUG]: urllib3.connectionpool (connectionpool._make_request; connectionpool.py:452)
    https://file.wx2.qq.com:443 "GET /cgi-bin/mmwebwx-bin/webwxgetmedia?sender=%40169ff79660cfbadc4a70df0ca89ee5fe434aa584e0c497f68d491334df79128b&mediaid=%40crypt_f92233d2_f949d21d3e6e5eafab2e92ac0a101762970675f366aaa609e7a82623c9a8b0f83d621b64595777acdc642a1f773e9e989bfbf82e5ad9ba0adc420d782e7752a7cdb03407f804895a01f9b0f91b049d6197343759ea56963dabbe74359b575060a7c6e15a6e0aecb1e29bcb32c8ce73f38a6e3a781b381415c7f9bde96757f23d8267a0bbf29162085c69753b51210cbe9b6e37ffa2b82793657f88299521c416b795a842b5b79214a6c1db2554b29b0f0257654b6cddd3bf38f5fadb626302f96dd30fd6f1d646db5832a82ebba4d7a6da778202dac36f6ee59e67bd472e4c98&filename=2022%E5%B9%B49-12%E6%9C%88%E9%9B%85%E6%80%9D%E5%8F%A3%E8%AF%AD%E6%96%B0%E9%A2%98%E5%BA%93+9.6+%E6%8A%A2%E9%B2%9C%E7%89%88.pdf&fromuser=3487292145&pass_ticket=undefined&webwx_data_ticket=gSc4BMUlfi9H%2F%2Fu135MVqkIt HTTP/1.1" 200 537266
2022-09-11 11:15:35,572 [DEBUG]: efb_wechat_slave.slave_message (slave_message.save_file; slave_message.py:549)
    [5158292967946718888] File size: 537266
2022-09-11 11:15:35,574 [DEBUG]: efb_wechat_slave.slave_message (slave_message.save_file; slave_message.py:554)
    [5158292967946718888] File downloaded: /tmp/tmpx9tw874o (application/pdf)
2022-09-11 11:15:35,576 [DEBUG]: efb_wechat_slave.slave_message (slave_message.wrap_func; slave_message.py:98)
    [[["5158292967946718888"]]] Chat: <PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>, Author: <SelfChatMember: You (__self__) @ <PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>>
2022-09-11 11:15:35,576 [DEBUG]: plugins.catbaron.mp_instantview.MPInstantViewMiddleware (__init__.process_url; __init__.py:95)
    Failed to process mp url!
2022-09-11 11:15:35,576 [DEBUG]: plugins.catbaron.mp_instantview.MPInstantViewMiddleware (__init__.process_url; __init__.py:96)
    'NoneType' object has no attribute 'url'
2022-09-11 11:15:35,576 [DEBUG]: efb_telegram_master.slave_message (slave_message.send_message; slave_message.py:92)
    [[["5158292967946718888"]]] Slave message delivered to ETM.
<Message, <SelfChatMember: You (__self__) @ <PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>>@<PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)> [File]: 这是测试文件.pdf; [["5158292967946718888"]]>
2022-09-11 11:15:35,577 [DEBUG]: efb_telegram_master.chat_object_cache (chat_object_cache.update_chat_obj; chat_object_cache.py:146)
    Trying to update key ('blueset.wechat', 'c304a539') with object <PrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>. Full update: False
2022-09-11 11:15:35,577 [DEBUG]: efb_telegram_master.chat_object_cache (chat_object_cache.update_chat_obj; chat_object_cache.py:152)
    Cached object found with key ('blueset.wechat', 'c304a539').
2022-09-11 11:15:35,577 [DEBUG]: peewee (peewee.execute_sql; peewee.py:3185)
    ('SELECT "t1"."slave_uid", "t1"."master_uid" FROM "chatassoc" AS "t1" WHERE ("t1"."slave_uid" = ?)', ['blueset.wechat c304a539'])
2022-09-11 11:15:35,578 [DEBUG]: efb_telegram_master.slave_message (slave_message.get_slave_msg_dest; slave_message.py:248)
    [[["5158292967946718888"]]] The message should deliver to blueset.telegram -586986486
2022-09-11 11:15:35,578 [DEBUG]: peewee (peewee.execute_sql; peewee.py:3185)
    ('SELECT "t1"."slave_uid", "t1"."master_uid" FROM "chatassoc" AS "t1" WHERE ("t1"."master_uid" = ?)', ['blueset.telegram -586986486'])
2022-09-11 11:15:35,578 [DEBUG]: efb_telegram_master.slave_message (slave_message.get_slave_msg_dest; slave_message.py:256)
    [[["5158292967946718888"]]] Message is in chat <ETMPrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>
2022-09-11 11:15:35,578 [DEBUG]: efb_telegram_master.slave_message (slave_message.get_slave_msg_dest; slave_message.py:267)
    [[["5158292967946718888"]]] Message is sent to Telegram chat -586986486, with header "You:".
2022-09-11 11:15:35,578 [DEBUG]: telegram.bot (bot.decorator; bot.py:132)
    Entering: send_chat_action
2022-09-11 11:15:35,671 [DEBUG]: telegram.bot (bot.decorator; bot.py:134)
    True
2022-09-11 11:15:35,671 [DEBUG]: telegram.bot (bot.decorator; bot.py:135)
    Exiting: send_chat_action
2022-09-11 11:15:35,671 [DEBUG]: efb_telegram_master.slave_message (slave_message.slave_message_file; slave_message.py:703)
    [[["5158292967946718888"]]] Uploading file /tmp/tmpx9tw874o (application/pdf) as 这是测试文件.pdf
2022-09-11 11:15:35,673 [ERROR]: efb_telegram_master.slave_message (slave_message.send_message; slave_message.py:123)
    Error occurred while processing message from slave channel.
Message: <Message, <ETMSelfChatMember: You (__self__) @ <ETMPrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>>@<ETMPrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)> [File]: 这是测试文件.pdf; Attributes: None; Delivering to: <efb_telegram_master.TelegramChannel object at 0x7f8b216b9fd0>; Edited: False; System message: False; Substitutions: None; Target messages: None; UID: [["5158292967946718888"]]; Reactions: {}; File: <tempfile._TemporaryFileWrapper object at 0x7f8b202249d0> (这是测试文件.pdf @ /tmp/tmpx9tw874o), application/pdf; Vendor: {}>
FileNotFoundError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 121, in send_message
    self.dispatch_message(msg, msg_template, old_msg_id, tg_dest, silent)
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 191, in dispatch_message
    tg_msg = self.slave_message_file(msg, tg_dest, msg_template, reactions, old_msg_id, target_msg_id,
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 706, in slave_message_file
    return self.bot.send_document(tg_dest, file,
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 94, in caption_affix
    is_empty = self._detect_empty_file(file, chat, text, prefix, suffix)
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 584, in _detect_empty_file
    empty = os.stat(file).st_size == 0
FileNotFoundError: [Errno 2] No such file or directory: 'file:///tmp/tmpx9tw874o'

The problem with duplicate messages I mentioned before didn't happen this time, before I used the -v parameter, this time I used --verbose and everything worked fine

"白鹭" is the file sender, and “我方口古巨兽已入场” is the file acceptor

blueset commented 1 year ago

Closing as can’t repro

zsbai commented 1 year ago

Closing as can’t repro

 2022-12-10 14:21:03,197 [ERROR]: efb_telegram_master.slave_message (slave_message.send_message; slave_message.py:123)
    Error occurred while processing message from slave channel.
Message: <Message, <ETMSelfChatMember: You (__self__) @ <ETMPrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)>>@<ETMPrivateChat: 我方口古巨兽已入场 (c304a539) @ 💬WeChat Slave (blueset.wechat)> [File]: Cambridge_FurtherMath_高清.pdf; Attributes: None; Delivering to: <efb_telegram_master.TelegramChannel object at 0x7f144e309fd0>; Edited: False; System message: False; Substitutions: None; Target messages: None; UID: [["4657444136820040769"]]; Reactions: {}; File: <tempfile._TemporaryFileWrapper object at 0x7f14482a5220> (Cambridge_FurtherMath_高清.pdf @ /tmp/tmp0xt4xf7g), application/pdf; Vendor: {}>
FileNotFoundError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 121, in send_message
    self.dispatch_message(msg, msg_template, old_msg_id, tg_dest, silent)
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 191, in dispatch_message
    tg_msg = self.slave_message_file(msg, tg_dest, msg_template, reactions, old_msg_id, target_msg_id,
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 706, in slave_message_file
    return self.bot.send_document(tg_dest, file,
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 94, in caption_affix
    is_empty = self._detect_empty_file(file, chat, text, prefix, suffix)
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 584, in _detect_empty_file
    empty = os.stat(file).st_size == 0
FileNotFoundError: [Errno 2] No such file or directory: 'file:///tmp/tmp0xt4xf7g'

我这里问题依旧,这是我的配置文件

flags:
  send_image_as_file: false
  animated_stickers: true
  default_media_prompt: text
  api_base_url: http://localhost:8081/bot
  api_base_file_url: http://localhost:8081/file/bot
  local_tdlib_api: true
zsbai commented 1 year ago

改配置文件的时候启动又出现了重新发送消息的问题,日志如下

2022-12-10 14:25:41,366 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14062] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:41,766 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14063] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:42,204 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14066] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:43,280 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14067] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:43,653 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14068] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:44,077 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14069] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:44,510 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14070] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:44,932 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14074] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:45,315 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14075] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:45,882 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-1001516848665.14077] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:46,463 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-732254387.40858] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:46,935 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-732254387.40859] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:48,132 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-586986486.40860] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:25:49,213 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-586986486.40861] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
2022-12-10 14:26:33,738 [ERROR]: plugins.blueset.wechat.WeChatChannel (__init__.send_message; __init__.py:353)
    [-586986486.40866] Error occurred while marking chat as read. (err_code: 1205; err_msg: )
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 351, in send_message
    chat.mark_as_read()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 66, in wrapped
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 293, in mark_as_read
    return req.request('POST')
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/base_request.py", line 64, in request
    return do()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: 1205; err_msg:
zsbai commented 1 year ago

telegram端向微信发送大于20m文件相同报错:

2022-12-10 14:34:00,413 [ERROR]: efb_telegram_master.master_message (master_message.process_telegram_message; master_message.py:419)
    Message is not sent. (update: {'update_id': 759849353, 'message': {'delete_chat_photo': False, 'chat': {'all_members_are_administrators': True, 'type': 'group', 'id': -586986486, 'title': '💬👤 我方口古巨兽已入场'}, 'supergroup_chat_created': False, 'channel_chat_created': False, 'document': {'mime_type': 'application/x-7z-compressed', 'file_id': 'BQACAgUAAxkBAAKfyGOUmMh95wGhkMK24ramW4rP4KcYAAIlCQACal9oVjeZDYoHN-rwKQQ', 'file_name': 'QQScreenShot_v2.5.0.7z', 'file_size': 40314768, 'file_unique_id': 'AgADJQkAAmpfaFY'}, 'new_chat_members': [], 'group_chat_created': False, 'entities': [], 'date': 1670682824, 'message_id': 40904, 'photo': [], 'caption_entities': [], 'new_chat_photo': [], 'from': {'first_name': '>_', 'is_bot': False, 'username': 'baiiylu', 'id': 840325724, 'language_code': 'zh-hans', 'is_premium': True}}}, exception: Error from Web WeChat while sending file: [-1000] 返回值不带BaseResponse)
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 736, in _bot_send_file
    return chat.send_file(filename, file=file)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/api/chats/chat.py", line 54, in wrapped
    ret = do_send()
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 71, in wrapped
    smart_map(check_response_body, ret)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 206, in smart_map
    return func(i, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/vendor/wxpy/utils/misc.py", line 52, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
efb_wechat_slave.vendor.wxpy.exceptions.ResponseError: err_code: -1000; err_msg: 返回值不带BaseResponse

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/master_message.py", line 405, in process_telegram_message
    slave_msg = coordinator.send_message(m)
  File "/usr/local/lib/python3.9/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.9/dist-packages/efb_wechat_slave/__init__.py", line 487, in send_message
    r.append(self._bot_send_file(chat, filename, file=msg.file))
  File "/usr/local/lib/python3.9/dist-packages/efb_wechat_slave/__init__.py", line 739, in _bot_send_file
    raise EFBMessageError(self._("Error from Web WeChat while sending file: [{code}] {message}")
ehforwarderbot.exceptions.EFBMessageError: Error from Web WeChat while sending file: [-1000] 返回值不带BaseResponse
blueset commented 1 year ago

Please post full verbose log of the repro process, thank you.

zsbai commented 1 year ago

Please post full verbose log of the repro process, thank you.

I don't get the "FileNotFoundError" on my local machine either, but I still can't send and receive large files when using local api.

When I try to send large file from telegram, efb said"Message is not sent.

Error from Web WeChat while sending file: [-1000] 返回值不带BaseResponse"

here is the full verbose log: https://net.baiblog.ren/logs/Send_file_from_telegram.log Or should I open this Issue in wechat slave github repo?

When I try to accept the large file send by wechat friend, efb said "Clash.for.Windows-0.20.12.dmg[Failed to download the file, please check your phone.]"

here is the full verbose log: https://net.baiblog.ren/logs/accept_file_from_wechat.log

The size of file using in this test is 98mb. my config file:

flags:
  send_image_as_file: false
  animated_stickers: true
  default_media_prompt: text
  local_tdlib_api: true
  api_base_file_url: http://127.0.0.1:8081/file/bot
  api_base_url: http://127.0.0.1:8081/bot