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

Fake challenge_required response #386

Open
ali-zahedi opened this issue Apr 25, 2022 · 1 comment
Open

Fake challenge_required response #386

ali-zahedi opened this issue Apr 25, 2022 · 1 comment

Comments

@ali-zahedi
Copy link

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
Copy link

xobius commented May 27, 2022

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

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

No branches or pull requests

2 participants