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

JSON Query to graphql/query: HTTP error code 401 #2011

Closed
keisanng opened this issue Jun 18, 2023 · 5 comments
Closed

JSON Query to graphql/query: HTTP error code 401 #2011

keisanng opened this issue Jun 18, 2023 · 5 comments
Labels
bug Bug stale Issue is inactive for a long time

Comments

@keisanng
Copy link

keisanng commented Jun 18, 2023

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

To Reproduce
Steps to reproduce the behavior:

  1. Instaloader Python module
  2. Scrape an Instagram page for videos only.

Expected behavior
I expected for the program to function correctly and download the videos.

Error messages and tracebacks
JSON Query to graphql/query: HTTP error code 401

Traceback (most recent call last):
  File "DRIVE:\PATH\.venv\Lib\site-packages\instaloader\instaloadercontext.py", line 352, in get_json
    raise ConnectionException("HTTP error code {}.".format(resp.status_code))
instaloader.exceptions.ConnectionException: HTTP error code 401.

Instaloader version
4.9.6

Additional context
It worked for a little bit today after similar behavior yesterday... maybe it's just Instagram cracking down on me?

@keisanng keisanng added the bug Bug label Jun 18, 2023
@keisanng
Copy link
Author

#2000 #2001 #2002 are recent issues with the same problem, I think Instagram changed internally; sorry this is all information I can contribute.

@aandergr
Copy link
Member

Thanks for reporting. Indeed, this problem has been reported more frequently lately.

The seemingly most effective way to alleviate this is outlined here: https://instaloader.github.io/troubleshooting.html#too-many-requests – especially that restarting or reinstantiating Instaloader within short time should be avoided, to allow the rate controller to throttle requests.

Copy link

github-actions bot commented Jan 1, 2024

There has been no activity on this issue for an extended period of time. This issue will be closed after further 14 days of inactivity.

@github-actions github-actions bot added the stale Issue is inactive for a long time label Jan 1, 2024
@frozenpandaman
Copy link

Would love to see this fixed, if possible! It seems the suggested "solution" for now is just "wait".

@satoshinotdead
Copy link

Would love to see this fixed, if possible! It seems the suggested "solution" for now is just "wait".

I can confirm we can load cookies from browser and everything works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug stale Issue is inactive for a long time
Projects
None yet
Development

No branches or pull requests

4 participants