dilame / instagram-private-api

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

challange_required after calling the method ig.challenge.auto(true) #1319

Open jsdavid opened 3 years ago

jsdavid commented 3 years ago

image

Hi, after calling the method ig.challenge.auto(true), I again get the error challange_required. How can I pass this type of challenge correctly?

Danail-Irinkov commented 3 years ago

I think there needs to be an example of handing the challenges. I am not sure how to approach it at all.

dcts commented 3 years ago

There is an example how to handle checkpoints here, but for me it also stopped working (for 1 account). Calling ig.challenge.auto(true) throws another IgCheckpointError

IgCheckpointError: POST /api/v1/challenge/reset/43632508788/2derKAkFEY/ - 400 Bad Request; challenge_required

I solved it by logging in through the instagram webapp and doing the challenge manually, then resetting the password. After doing this I was able to also logg back in through the instagram-private-api. Unfortunately I did not write down debug logs, and I wasnt able to programatically do the challenge. Will report here proper logs in case this happens again.

dcts commented 3 years ago

I still have this issue, @Danail-Irinkov or @jsdavid did you find a workaround by now?

Also I noticed that after the IgCheckpointError is thrown, ig.checkpoint is undefined. In the checkpoint example it is indicated that it should contain checkpoint info.

Danail-Irinkov commented 3 years ago

Hi :) Thank you so much for the reference. I managed to get it going, but since I am doing it for the first time, my ip got timed out for too many requests. Do you have some insight into how their throttling works? I couldn't find reliable info online...

Kind regards, Dan

On Thu, Mar 25, 2021 at 7:13 AM dcts @.***> wrote:

I still have this issue, @Danail-Irinkov https://github.com/Danail-Irinkov or @jsdavid https://github.com/jsdavid did you find a workaround by now?

Also I noticed that after the IgCheckpointError is thrown, ig.checkpoint is undefined. In the checkpoint example https://github.com/dilame/instagram-private-api/blob/623a348343e34058c3a286693740aa3698aed3cc/examples/checkpoint.example.ts#L20 it is indicated that it should contain checkpoint info.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dilame/instagram-private-api/issues/1319#issuecomment-806369189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEM7KRQL7GUVVYVXJKYEILTFLBAJANCNFSM4T76OCNQ .