instagram_private_api icon indicating copy to clipboard operation
instagram_private_api copied to clipboard

Fake challenge_required response

Open ali-zahedi opened this issue 2 years ago • 1 comments

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"}

ali-zahedi avatar Apr 25 '22 09:04 ali-zahedi

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

xobius avatar May 27 '22 14:05 xobius