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

I can't upload photos

Open ChopsKingsland opened this issue 3 years ago • 9 comments

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?

ChopsKingsland avatar Dec 15 '20 14:12 ChopsKingsland

I have the same issue...

Caspertje83 avatar Dec 17 '20 07:12 Caspertje83

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

GonzoTBA avatar Dec 26 '20 17:12 GonzoTBA

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

Can anyone confirm whether this is the case or not?

jamesspittal avatar Jan 04 '21 10:01 jamesspittal

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

GonzoTBA avatar Jan 04 '21 10:01 GonzoTBA

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

danmaster avatar Jun 07 '21 10:06 danmaster

Same here

RenanNSsh avatar Sep 30 '21 13:09 RenanNSsh

same here and sometimes its says error in aspect ratio

Pasanlaksitha avatar Nov 13 '21 11:11 Pasanlaksitha

i have the same problem

Lvc4 avatar Mar 01 '22 11:03 Lvc4

Same problem here

SlumberDemon avatar Jun 02 '22 08:06 SlumberDemon