youfou / wxpy

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

视频发送不成功 #221

Open hankzhaoo opened 7 years ago

hankzhaoo commented 7 years ago

图片可以正常发送,但视频无法发送成功

2017-10-31 2 44 14
modun commented 6 years ago

能发送文字,但不能发送图片

Traceback (most recent call last): File "wxpy_self.py", line 6, in bot.file_helper.send_image('test.jpg') File "/usr/local/lib/python2.7/dist-packages/wxpy/api/chats/chat.py", line 54, in wrapped ret = do_send() File "/usr/local/lib/python2.7/dist-packages/wxpy/utils/misc.py", line 72, in wrapped smart_map(check_response_body, ret) File "/usr/local/lib/python2.7/dist-packages/wxpy/utils/misc.py", line 207, in smart_map return func(i, *args, **kwargs) File "/usr/local/lib/python2.7/dist-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:

image _20171120221842

gswf-sha commented 6 years ago

same here, send_file或send_video的错误相同: Traceback (most recent call last):

File "", line 1, in yf.send_video('index.mp4')

File "/Users/yefeng/anaconda/envs/ds/lib/python3.5/site-packages/wxpy/api/chats/chat.py", line 54, in wrapped ret = do_send()

File "/Users/yefeng/anaconda/envs/ds/lib/python3.5/site-packages/wxpy/utils/misc.py", line 71, in wrapped smart_map(check_response_body, ret)

File "/Users/yefeng/anaconda/envs/ds/lib/python3.5/site-packages/wxpy/utils/misc.py", line 205, in smart_map return func(i, *args, **kwargs)

File "/Users/yefeng/anaconda/envs/ds/lib/python3.5/site-packages/wxpy/utils/misc.py", line 52, in check_response_body raise ResponseError(err_code=err_code, err_msg=err_msg)

ResponseError: err_code: 1; err_msg:


Traceback (most recent call last):

File "", line 1, in yf.send_file('index.mp4')

File "/Users/yefeng/anaconda/envs/ds/lib/python3.5/site-packages/wxpy/api/chats/chat.py", line 54, in wrapped ret = do_send()

File "/Users/yefeng/anaconda/envs/ds/lib/python3.5/site-packages/wxpy/utils/misc.py", line 71, in wrapped smart_map(check_response_body, ret)

File "/Users/yefeng/anaconda/envs/ds/lib/python3.5/site-packages/wxpy/utils/misc.py", line 205, in smart_map return func(i, *args, **kwargs)

File "/Users/yefeng/anaconda/envs/ds/lib/python3.5/site-packages/wxpy/utils/misc.py", line 52, in check_response_body raise ResponseError(err_code=err_code, err_msg=err_msg)

ResponseError: err_code: 1; err_msg:

dan6886 commented 5 years ago

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