instapy-cli icon indicating copy to clipboard operation
instapy-cli copied to clipboard

[BUG] error uploading video

Open hypertrifle opened this issue 6 years ago • 0 comments

output:

$ sudo python3 instagram-upload.py                      
[IG] not found cookie/cookie_file >> login as default                                  
Retry configure after 6.500000 seconds                                                 
Error is >>                                                                            
    Transcode not finished yet.                                                        
                                                                                       
Something went bad.                                                                    
Please retry or send an issue on https://github.com/b3nab/instapy-cli                  
                                                                                       
Traceback (most recent call last):                                                     
  File "instagram-upload.py", line 9, in <module>                                      
    cli.upload(video, text)                                                            
  File "/usr/local/lib/python3.5/dist-packages/instapy_cli/cli.py", line 153, in upload
    raise IOError("Unable to upload.")                                                 
OSError: Unable to upload.

instagram-upload.py:

from instapy_cli import client

username = 'xxxxxx'
password = 'xxxxxx'
video = '/home/pi/booth/capture/insta.mp4'
text = 'test plz ignore'

with client(username, password) as cli:
    cli.upload(video, text)

video file is a standard h264 video around 500kb which seems to fit all the Instagram criteria some googling and references to a PHP version of the Instagram API suggest a longer wait time but i'm not sure how I would configure that.

Edit: Since posting the original bug, I have had it complete once or twice so it seems intermittent... Any ideas on how to configure the retry delay?

hypertrifle avatar Aug 04 '19 15:08 hypertrifle