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.

Describe the bug A clear and concise description of what the bug is.

`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 “instagram.py”, line 9, in <module> cli.upload(image, text) File “/Users/vladartym/.pyenv/versions/3.7.4/lib/python3.7/site-packages/instapy_cli/cli.py”, line 153, in upload raise IOError(“Unable to upload.”) OSError: Unable to upload. `

To Reproduce Code to reproduce the behavior:

`from instapy_cli import client

username = ‘hello’ password = ‘****’ image = ‘ready/vladartym.jpg’ 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)`

#code here

Expected behavior A clear and concise description of what you expected to happen.

code not working.

Logs If there are any errors or exceptions, add the logs to help explain your problem.


Env (please complete the following information):

  • OS: [e.g. macOS]
  • Python: [e.g. 3.6]
  • instapy-cli Version: [e.g. 0.0.9.0]

Additional context Add any other context about the problem here.

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

2reactions
imshubbhcommented, Apr 8, 2020

@imshub is that code working for you?

@vladartym For login Yes. For media uploads No.

2reactions
imshubbhcommented, Apr 5, 2020

Getting - OSError: Unable to upload.

this is My code -

from instapy_cli import client

import ssl ssl._create_default_https_context = ssl._create_unverified_context

username = ‘’ password = '’ image = ‘posts/demo2.jpg’

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug Definition & Meaning - Merriam-Webster
The meaning of BUG is any of an order (Hemiptera and especially its suborder Heteroptera) of insects (such as an assassin bug or...
Read more >
Bug (2006) - IMDb
An unhinged war veteran holes up with a lonely woman in a spooky Oklahoma motel room. The line between reality and delusion is...
Read more >
bug - Wiktionary
(entomology) An insect of the order Hemiptera (the “true bugs”). Any of various species of marine or freshwater crustaceans; e.g. a Moreton Bay...
Read more >
Bug - Wikipedia
A terrestrial arthropod animal (with at least six legs). Insect, a six-legged arthropod · Covert listening device, used in surveillance, espionage and policing ......
Read more >
BUG | definition in the Cambridge English Dictionary
bug noun (INSECT) ... an insect: Some tiny white bugs had eaten the leaves of my house plants. ... A bug is also...
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