Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
a3igner opened this issue Jun 23, 2020 · 2 comments
Open

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

a3igner opened this issue Jun 23, 2020 · 2 comments

Comments

@a3igner
Copy link

a3igner commented Jun 23, 2020

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
@duplicate-issues
Copy link

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

@a3igner
Copy link
Author

a3igner commented Jun 23, 2020

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

@a3igner a3igner changed the title simple commandline call won't work... [BUG] simple upload from CLI or Python script won't work... [BUG] Jun 23, 2020
@a3igner a3igner changed the title simple upload from CLI or Python script won't work... [BUG] simple jpg upload from CLI or Python script won't work... [BUG] Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant