instapy-cli: [BUG] Upload not working

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.

About this issue

Most upvoted comments

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

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.

if you upload just photos ↓ https://paste.ubuntu.com/p/mxyYmBpryK/

I also need help…

thanks @roycebank , this works for me. looks the temporary solution is to use Selenium…

guys i’ve tried a different method its working for upload videos but i couldnt upgrade method codes bcause i dont have time. you must connect your ig account with any facebook account then fill mail,passwd with fb account info. https://paste.ubuntu.com/p/gfnjZ397k7/