igdm-cli icon indicating copy to clipboard operation
igdm-cli copied to clipboard

Checkpoint Challenge Required

Open drepram opened this issue 7 years ago • 9 comments

So I was accessing instagram on the web and I wanted to view my DM's through igdm, but somehow, I can't log in.

Is this a bug?

screen shot 2018-04-22 at 17 54 52

Logging in on igdm-cli

screen shot 2018-04-22 at 17 54 53

Ended up fucking my web session.

drepram avatar Apr 22 '18 11:04 drepram

This is expected, Instagram actually uses several safety mechanisms, including this challenge. This CLI doesn't handle the errors properly (yet) hence the console.error("can't login").

Known safety mechanisms:

  1. Auth challenge from a logged in session => we should inform users to open a logged in session elsewhere
  2. Secret code, sent to email => we can let the user input the code through the CLI

For now, PRs are welcome

mathdroid avatar Apr 23 '18 06:04 mathdroid

I'm open to try to fix this. Is it okay for me to format other errors too (wrong username, password)?

marjanovicsteva avatar Oct 07 '18 12:10 marjanovicsteva

Yes, feel free to include them either in the same PR or different ones 😇 On Sun, 7 Oct 2018 at 19.59 Stevan Marjanovic [email protected] wrote:

I'm open to try to fix this. Is it okay for me to format other errors too (wrong username, password)?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/mathdroid/igdm-cli/issues/3#issuecomment-427651495, or mute the thread https://github.com/notifications/unsubscribe-auth/ADkzMoxoCW8izudqiFVM8C0KcVF2e1lqks5uifqTgaJpZM4Te0aU .

mathdroid avatar Oct 07 '18 14:10 mathdroid

Known safety mechanisms: 2. Secret code, sent to email => we can let the user input the code through the CLI

Right now on my fork, there is a fix for wrong username/password. I also managed to send the user the verification code (via email). But when I try to verify it over code() function (defined in challenge.js:194) I get error that the function is not defined at all...

I'm sorry for the inconvenience, but are you aware of the problem or should I issue it on instagram-private-api?

marjanovicsteva avatar Oct 09 '18 13:10 marjanovicsteva

Any update regarding this issue? I'm currently facing the same. Already tried @marjanovicsteva fork and i wasn't able to also find a good solution

Pr0ph3ta avatar Oct 22 '18 22:10 Pr0ph3ta

Any update regarding this issue? I'm currently facing the same. Already tried @marjanovicsteva fork and i wasn't able to also find a good solution

Hey @Pr0ph3ta , I recently contacted a guy that created igdm, a project that successfully resolves the challenge issue. He replied with the following snippet.

Client.Web.Challenge.resolve(error, 'email').then((challenge) => challenge.code('123456'))

But for some super strange reason, this promise doesn't return anything (so neither .then() or .catch() functions are called). There is no situation that is supposed to just skip promises. I mean, they promised...

If you're down to check all this together, so I could send you everything I've collected regarding this, feel free to contact me :)

marjanovicsteva avatar Oct 23 '18 12:10 marjanovicsteva

btw the script https://github.com/nemanjan00/instagram-chat does login without generating the "this was me/this wasn't me" thing

andrew222651 avatar Apr 30 '19 16:04 andrew222651

any updates on this?, I am getting the challenge URL, and solve it in a web browser, but after that still requires another challenge in igdm-cli, how can I login then?

joecabezas avatar Aug 05 '19 09:08 joecabezas

Just stumbled on same exact issue, same error output. After i visit the challenge link i was given in the output, it logs me into the browser but not into the CLI.

isakal avatar Jan 01 '20 17:01 isakal