dilame / instagram-private-api

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

Challenge Required #1657

Open WilliamFalci opened 1 year ago

WilliamFalci commented 1 year ago

Node Version: v16.15.1 OS: Linux Ubuntu

async function login() {
  ig.state.generateDevice(process.env.IG_USERNAME);
  await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD);
}

Error: IgCheckpointError: POST /api/v1/accounts/login/ - 400 Bad Request; challenge_required

Before opent this issue I checked the previous, if I login from the app and I press "I was" instagram force me to set a new password, then I replace the password into my .env and I get always the same situation of before... Im in stuck on this

127 commented 1 year ago

I have the same issue with this example https://github.com/dilame/instagram-private-api/blob/master/examples/checkpoint.example.ts

sassvagyok commented 1 year ago

The same happened to me after multiple logins, Instagram actually locked my account for 'suspicious activites/logins' but I got it back but had to change my password.

webparadoxer commented 1 year ago

The same problem, when logging into instagram asks to change the password and it repeats every time.

webparadoxer commented 1 year ago

Any updates?

wizzymotion commented 1 year ago

The same happened to me after multiple logins, Instagram actually locked my account for 'suspicious activites/logins' but I got it back but had to change my password.

how did you solve this @sassvagyok ???

wizzymotion commented 1 year ago

Node Version: v16.15.1 OS: Linux Ubuntu

async function login() {
  ig.state.generateDevice(process.env.IG_USERNAME);
  await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD);
}

Error: IgCheckpointError: POST /api/v1/accounts/login/ - 400 Bad Request; challenge_required

Before opent this issue I checked the previous, if I login from the app and I press "I was" instagram force me to set a new password, then I replace the password into my .env and I get always the same situation of before... Im in stuck on this

Did you get a solution for this @WilliamFalci ??

WilliamFalci commented 1 year ago

@wizzymotion nope, and I abbandoned the idea, instagram require everytime to change password after the error

boly38 commented 11 months ago

historical issue talking about this #1637 (cf. this comment))