Skip to content
New issue

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

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

Already on GitHub? # to your account

I can't upload photos #108

Open
ChopsKingsland opened this issue Dec 15, 2020 · 9 comments
Open

I can't upload photos #108

ChopsKingsland opened this issue Dec 15, 2020 · 9 comments

Comments

@ChopsKingsland
Copy link

I am trying to post a photo using this library, but it doesn't work...

from instapy_cli import client

username = '*************'
password = '****************'
image = 'img/blank.png'
text = 'This will be the caption of your photo.' + '\r\n' + 'You can also use hashtags! #hash #tag #now'

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

and the error I get is:

Error parsing error response: Expecting value: line 1 column 1 (char 0)
Error is >>
    Not Found

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

Traceback (most recent call last):
  File "d:\Documents\Python\spacexLaunchesIG\instagram.py", line 9, in <module>
    cli.upload(image, text)
  File "C:\Users\charl\AppData\Roaming\Python\Python39\site-packages\instapy_cli\cli.py", line 153, in upload
    raise IOError("Unable to upload.")
OSError: Unable to upload.

any ideas how to fix this?

@Caspertje83
Copy link

I have the same issue...

@GonzoTBA
Copy link

Me neither. I assume the Instagram API changed and this code didn't.

@jamesspittal
Copy link

jamesspittal commented Jan 4, 2021

Me neither. I assume the Instagram API changed and this code didn't.

Can anyone confirm whether this is the case or not?

@GonzoTBA
Copy link

GonzoTBA commented Jan 4, 2021

No idea. I just wanted to let you know guys, I finally got it working with the instabot module. Pretty straightforward.

@danmaster
Copy link

Time has passed and the problem persists. Does anyone know if they have a solution or should they go to another module?
The fault is

Error parsing error response: Expecting value: line 1 column 1 (char 0)
Error is >>
     Not found

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

@RenanNSsh
Copy link

Same here

@Pasanlaksitha
Copy link

same here and sometimes its says error in aspect ratio

@Lvc4
Copy link

Lvc4 commented Mar 1, 2022

i have the same problem

@SlumberDemon
Copy link

Same problem here

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants