youfou / wxpy

微信机器人 / 可能是最优雅的微信个人号 API ✨✨
http://wxpy.readthedocs.io
MIT License
13.99k stars 2.38k forks source link

大一点的文件/图片/视频发送失败怎么办 #297

Open jiangzhenxing opened 6 years ago

jiangzhenxing commented 6 years ago

大一点的文件/图片/视频发送失败怎么办啊,现在好像只能发送几百K的文件图片,大一点的就发送失败,错误代码为1,错误信息为空,不知道是什么原因。是微信的协议变了吗?

nevermore31 commented 6 years ago

同样的问题~你解决了吗

himandy commented 6 years ago

我也遇到这个问题。貌似图片大于500k,就无法转发,也没有错误提示。

gene21 commented 6 years ago

同求

Big2Cat commented 6 years ago

解决办法

jm33-m0 commented 5 years ago

测试了下,文件发送最大只能512KB,多1KB都会失败:

  File "/root/.local/lib/python3.5/site-packages/wxpy/api/chats/chat.py", line 54, in wrapped
    ret = do_send()
  File "/root/.local/lib/python3.5/site-packages/wxpy/utils/misc.py", line 72, in wrapped
    smart_map(check_response_body, ret)
  File "/root/.local/lib/python3.5/site-packages/wxpy/utils/misc.py", line 207, in smart_map
    return func(i, *args, **kwargs)
  File "/root/.local/lib/python3.5/site-packages/wxpy/utils/misc.py", line 53, in check_response_body
    raise ResponseError(err_code=err_code, err_msg=err_msg)
wxpy.exceptions.ResponseError: err_code: 1; err_msg:
wu-yy commented 5 years ago

更新 itchat 的版本到:itchat 1.3.10 pip install --upgrade itchat

hinkey commented 5 years ago

更新 itchat 的版本到:itchat 1.3.10 pip install --upgrade itchat

亲测有效!