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.

[BUG] Upload not working

See original GitHub issue

Hi everyone, the upload method in cli.py is not working.

$instapy -u ***** -p "*****" -f ig.png -t 'post_text'

instapy-cli 0.0.12  |  python 3.6.8
[IG] not found cookie/cookie_file >> login as default
Error parsing error response: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/home/vascostmr/ffmpeg_scripts/blog/my_py3/bin/instapy", line 8, in <module>
    sys.exit(main())
  File "/home/vascostmr/ffmpeg_scripts/blog/my_py3/lib/python3.6/site-packages/instapy_cli/__main__.py", line 44, in main
    cli.upload(options.file, text, story)
  File "/home/vascostmr/ffmpeg_scripts/blog/my_py3/lib/python3.6/site-packages/instapy_cli/cli.py", line 166, in upload
    raise IOError("Unable to upload.")
OSError: Unable to upload.

The error is thrown in upload.py from the instagram_private_api module, with a “Bad Request” message.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:32

github_iconTop GitHub Comments

7reactions
vascYTcommented, May 6, 2020

Guys. Instagram cut the API Support. You can forget this Python Libary.

4reactions
viatekhcommented, Jan 14, 2020

am also having this issue -

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 "igpython.py", line 30, in <module>
    cli.upload(path+file, text)
  File "/usr/local/lib/python3.7/site-packages/instapy_cli/cli.py", line 153, in upload
    raise IOError("Unable to upload.")
OSError: Unable to upload.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Common uploading errors - YouTube Help - Google Support
If you're having problems uploading your video, select the error message you're seeing and follow the troubleshooting steps to solve your issue.
Read more >
File Upload not working, how do i fix this? - Microsoft Community
2) Right click Start button to open Task Manager, show More Details, then choose Processes tab, scroll down to Windows Processes, then further ......
Read more >
Troubleshooting file upload problems - UK Copyright Service
Make sure the file is not corrupted. · Copy the file to your home/desktop folder and upload from there. · Don't upload folders...
Read more >
How to Fix Google Photos Not Uploading - Alphr
However, sometimes there's a bug, and the service doesn't work. Your photos are not uploading. Here are a couple of simple fixes you...
Read more >
How to fix file upload problems in Google Drive - YouTube
Problems relating to Google Drive are not abundant, so if you are in a grind, it should be easy to get out of...
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