dilame / instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.
MIT License
5.93k stars 1.14k forks source link

Login / challenge required #282

Closed MMrR0b0TT closed 7 years ago

MMrR0b0TT commented 7 years ago

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

IvanMMM commented 7 years ago

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.

MMrR0b0TT commented 7 years ago

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?

drawrowfly commented 7 years ago

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

tassio commented 7 years ago

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

IvanMMM commented 7 years ago

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.

tassio commented 7 years ago

Thanks @IvanMMM.

cameronepstein commented 7 years ago

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.

cameronepstein commented 7 years ago

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?

IvanMMM commented 7 years ago

@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.

sasahilkhan commented 6 years ago

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

kbdeez commented 6 years ago

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

Brad-Anthony commented 6 years ago

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

mohammadyacn314 commented 6 years ago

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!

jbmoney3 commented 6 years ago

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

ajaizchacha commented 5 years ago

I tried this but it didn’t work Please help me in this Challenge required

JMVasquezR commented 4 years ago

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

Nerixyz commented 4 years ago

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

JMVasquezR commented 4 years ago

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

zzimmerman11 commented 3 years ago

has anyone found a solution?

nitwit45 commented 1 year ago

Did anyone have any luck with the challenge_required error?