Instagram-private-api: Login / challenge required

Created on 7 Aug 2017  路  18Comments  路  Source: dilame/instagram-private-api

Hi,

We're dealing with an issue in the challenge required.
Instagram send us this message, we go to Instagram, send and fill the code correctly and when I try again, it send us the same url.
Is there any way you could help us with that?

{"message": "challenge_required", "challenge": {"url": "https://i.instagram.com/challenge/1366976288/VWmiDhwUb2/", "api_path": "/challenge/1366976288/VWmiDhwUb2/", "hide_webview_header": false, "lock": true, "logout": false, "native_flow": true}, "status": "fail", "error_type": "checkpoint_challenge_required"}

All 18 comments

There are special methods for resolving challenges. They allow you to send and enter code from Instagram. All you need is to provide code itself and phone number if needed.

Hi @IvanMMM, thanks for your reply. I know about this, but since last saturday we're dealing with different situation in here. We have confirmed the sms/email code in the app/website and Instagram didn't recognize it nomore.

Are you having any update from this weekend?

It is a bug from IG side, many people are experiencing the same issue, the only fix is to wait until it will be resolved from IG side

I think it's not a bug. They should have blocking IPs.
Here, solving challenges when login locally works.

You should use Challenge methods instead of manual solving through the app because of different session, device and ip. Module methods are trying to reset challenge before resolving it, so you can try doing it several times.

Thanks @IvanMMM.

Does anyone have an example of their challenge code? I've followed the example in the projects README but it seems strange to me that the functions themselves (lets say liking a photo) would not involve a promise .catch. Using spread alone seems like an unusual way to do things and is making debugging more difficult.

Also, im getting the rejection AuthenticationError: Login required to process this request, even though I login before making a like/follow request. Is this similar to your issue @MMrR0b0TT?? If so, have you resolved?

@cameronepstein, AuthenticationError actually is telling about you have cookie files, but do not have valid session. Probably login went not too well.
And about catch functions. We need to throw error from this methods anyway, since every developer wants to handle errors as he wants to. All we can do is to create some sort of logging, but I don't think we really need it.

Not working this web site in my mobile which is more terrific to use and it's must be doing and haressment

Havent been on instagram in about 2 mos ...got a new phone and tried to log in and getting challenge_required ........what do i do

Yea, me too. Just switched to a new phone and now locked out of my disabled "user not found" account.

its just a loop . always i say yes its me . and when i wanna use $api->login($username , $password); agin 4 login , app ask me are you ? why :/ ? and shows me the location of my 2nd place that wanna enter 2 my acc from it . can solve it by setting proxy??socks5?i can not!

EVERYONE I FIGURED IT OUT FINALLY AFTER NO DIRECT ANSWERS ON THE INTERNET!! :)
Step:

  1. Have google chrome or install google chrome cause its what I did it on
  2. Go to instagram.com and in your address bar it should now show www.instagram.com/challenge/ or something similar.
  3. This is were you will delete cookies from this site to stop them from replaying the same error message over and over... even if you have the right sms code. Go to step 4!
  4. Click green lock button(website security verification) in your address bar (top left on screen) and go to site settings.
  5. Once there click the back button in the setting option NOT the actual back button to take you to your previous webpage but the little arrow button to go back in the setting.
  6. Then click cookies option
  7. Then click "see all cookies and site data"
  8. "Search cookie" should show in the search bar in the top right
  9. Search Instagram and all your cookies come up
  10. Delete ALL cookies and go back to instagram.com
  11. Finished and should let you log in hopefully.

sometime you got to do things yourself. I looked all week online and didn't find a thing!! Hope this helps

-JB

I tried this but it didn鈥檛 work
Please help me in this
Challenge required

I'm with the same problem
Did you solve it?

@JMVasquezR Could you paste your challenge (error.response.body) here?

{"message": "challenge_required", "challenge": {"url": "https://i.instagram.com/challenge/1366976288/VWmiDhwUb2/", "api_path": "/challenge/1366976288/VWmiDhwUb2/", "hide_webview_header": false, "lock": true, "logout": false, "native_flow": true}, "status": "fail", "error_type": "checkpoint_challenge_required"}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

codingzombies picture codingzombies  路  19Comments

ciolt picture ciolt  路  35Comments

27RU57 picture 27RU57  路  12Comments

ozican picture ozican  路  143Comments

nikitaulshin picture nikitaulshin  路  17Comments