question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can't upload photos

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
GonzoTBAcommented, Jan 4, 2021

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

0reactions
SlumberDemoncommented, Jun 2, 2022

Same problem here

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Wrong With a Computer When Your Pictures Won't ...
Many factors come into play when uploading photos to a website; the speed of your Internet connection, the size of the photo, the...
Read more >
How To Fix “Google Photos Not Uploading” On Android ...
How To Fix “Google Photos Not Uploading” On Android & iPhone · 1. Diagnose your Internet Connection · 2. Ensure you're using the...
Read more >
I can't upload photos on Facebook | Facebook Help Center
I can't upload photos on Facebook · Make sure that you have a strong Wi-Fi or network connection. · Try uploading the original...
Read more >
How to Fix Google Photos Not Uploading - Alphr
Your photos might have stopped uploading to Google Photos because it needs to be updated. Follow these steps to make sure your app...
Read more >
Solved! - Can't upload photos to a website - Tom's Guide Forum
Locate Chrome and tap it and then tap "Clear Cache ". Then restart the phone (turn it off and back on) and try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found