ping / instagram_private_api

A Python library to access Instagram's private API.
MIT License
2.97k stars 616 forks source link

Fake challenge_required response #386

Open ali-zahedi opened 2 years ago

ali-zahedi commented 2 years ago

Hi, I'm using this package for a year. about 3 days ago I get a fake challenge_required from IG when using this package. The reason I'm calling it FAKE is that when I request again with the same account (even without the need to re-login) I can get a response. the fake challenge_required occurs randomly. for example, 33% of my total request raised this error. Do anyone else faced with this issue currently? If you know how I can resolve it please let me know. Thanks in advanced

example FAKE response (I'm using proxy): {"message":"challenge_required","challenge":{"url":"https://i.instagram.com/challenge/?next=/api/v1/users/123456789/info/", "api_path":"/challenge/", "hide_webview_header":true,"lock":true,"logout":false, "native_flow":true,"flow_render_type":0}, "status":"fail"}

xobius commented 2 years ago

Hi, I also have the same issue res = api.username_feed(username) File "/usr/local/lib/python3.8/dist-packages/instagram_private_api/endpoints/feed.py", line 103, in username_feed res = self._call_api(endpoint, query=kwargs) File "/usr/local/lib/python3.8/dist-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/usr/local/lib/python3.8/dist-packages/instagram_private_api/errors.py", line 129, in process raise error_info['error']( instagram_private_api.errors.ClientChallengeRequiredError: challenge_required

It happend randomly