b3nab/instapy-cli

simple jpg upload from CLI or Python script won't work... [BUG]

Opened this issue · 2 comments

output:
[IG] re-use cookie from XXMYUSERNAMEXX_ig.json
Error parsing error response: Expecting value: line 1 column 1 (char 0)
Error is >>
Bad Request

Something went bad.
Please retry or send an issue on https://github.com/b3nab/instapy-cli

Traceback (most recent call last):
File "upload.py", line 9, in
cli.upload(image, text)
File "/home/a3/.local/lib/python3.8/site-packages/instapy_cli/cli.py", line 153, in upload
raise IOError("Unable to upload.")
OSError: Unable to upload.

called from commandline:
instapy -u XXX -p XXX -f the_porpoise_galaxy_from_hubble_sd_2020-05-10.jpg -t 'NASA PIC OF DAY #spaceporn #beautiful'

or tried using python code

from instapy_cli import client

username = 'XXX'
password = 'XXX'
image = 'the_porpoise_galaxy_from_hubble_sd_2020-05-10.jpg'
text = 'NASA pic of the day' + '\r\n' + '#spaceporn #beautiful'
print(username,password,image,text)
with client(username, password) as cli:
        cli.upload(image, text)
  • OS: Ubuntu 18.04
  • Python: 3.8.2
  • instapy-cli Version: 0.0.12

Hey @a3igner,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄

If not, the maintainers will get to this issue shortly.

Cheers,
Your Friendly Neighborhood ProBot

Nope thats not the issue. The cookie is there and works. Some software issue it is.