Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #92

Open
vladartym opened this issue Mar 29, 2020 · 8 comments
Open

[BUG] #92

vladartym opened this issue Mar 29, 2020 · 8 comments

Comments

@vladartym
Copy link

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
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)
@duplicate-issues
Copy link

Hey @vladartym,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄

If not, the maintainers will get to this issue shortly.

Cheers,
Your Friendly Neighborhood ProBot

@imshubbh
Copy link

imshubbh commented 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)

@vladartym
Copy link
Author

@imShub is that code working for you?

@imshubbh
Copy link

imshubbh commented Apr 8, 2020

@imShub is that code working for you?

@vladartym For login Yes. For media uploads No.

@vladartym
Copy link
Author

@imShub have you found any alternatives?

@imshubbh
Copy link

imshubbh commented Apr 9, 2020

@imShub have you found any alternatives?

@vladartym not now.

@naveenbharadwaj19
Copy link

@imShub @vladartym even though i'm facing same error and i got a new error
`OSError: Unable to upload.
instapy-cli 0.0.12 | python 3.7.4
[IG] not found cookie/cookie_file >> login as default
Error is >>
Bad Request

Something went bad.
ModuleNotFoundError: No module named 'instapy_cli'`
Any solutions to fix this ?

@vladartym
Copy link
Author

I think this doesn't work anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants