Login error: JSON decode fail, 403 - Forbidden.
See original GitHub issueDescribe the bug Today I tried to login from two different accounts, from different IPs, and received a login error, 429 forbidden.
To Reproduce
Steps to reproduce the behavior:
instaloader --login <username> profile nasa
Expected behavior I expected to login and start downloading posts.
Error messages and tracebacks
Using above command line, I receive this:
Fatal error: Login error: JSON decode fail, 403 - Forbidden.
Using module, I get:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/instaloader/instaloadercontext.py", line 224, in login
resp_json = login.json()
File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/ig-login.py", line 57, in <module>
L.login(USER, PASSWORD)
File "/usr/local/lib/python3.7/dist-packages/instaloader/instaloader.py", line 546, in login
self.context.login(user, passwd)
File "/usr/local/lib/python3.7/dist-packages/instaloader/instaloadercontext.py", line 228, in login
) from err
instaloader.exceptions.ConnectionException: Login error: JSON decode fail, 403 - Forbidden.
Instaloader version 4.7.1
Additional context
If I try to login via web or via app, I don’t have any problems. My accounts seem perfectly fine. Also, without logging in, e.g.
instaloader nasa
I can download posts, so I guess my IP range is not banned.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:18
- Comments:41 (1 by maintainers)
Top Results From Across the Web
How can I fix error 403 on python rest api?
I was having issues getting the json data but yesterday evening, the status code was 200 and I was able to see the...
Read more >Instalooter not working : r/pythonhelp
Hello, every time i want to login to instalooter with ... this error message: "Fatal error: Login error: JSON decode fail, 403 -...
Read more >HTTP status and error codes for JSON | Cloud Storage
403—Forbidden ; accountDisabled, The account associated with the project that owns the bucket or object has been disabled. Check the Google Cloud console...
Read more >How to Fix a 403 Forbidden Error on Your WordPress Site
The 403 Forbidden error means that your server is working, but you no longer have permission to view all or some of your...
Read more >Troubleshooting — Instaloader documentation
Login error ¶ ... Instaloader's login should work fine, both with and without Two-Factor-Authentication. It also supports handling the checkpoint challenge, issued ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This seems to be a problem with retrieving the csrf token
in line 214 of instaloadercontext.py does not work for me while
is working fine!
I get this error in the EU, but if I set my VPN to India everything works just fine! So thanks for the tip 😃