Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do I get ChallengeChoice.EMAIL every time when I log in to get the SMS code? #1969

Open
tmxd09887 opened this issue Jul 9, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@tmxd09887
Copy link

got ChallengeChoice.EMAIL

But in fact, I received a login sms verification code

When I entered the SMS code, I got a login error message

And my account is not linked to Email

Is ChallengeChoice set to Email by default? How can I change it back to SMS?

@tmxd09887 tmxd09887 added the bug Something isn't working label Jul 9, 2024
@jbosolutions
Copy link

Me too… and Instagram ask to change password

@tmxd09887
Copy link
Author

I guess this is the case. Instagram asked for an SMS verification code, but sent back an email verification code, thus triggering risk control (requiring a password change). The normal process should be to successfully log in after entering the SMS verification code.

@jbosolutions
Copy link

Yeah I disabled sms auth. But I can’t disable email auth code… also I don’t know why Instagram ask me to change password, no sense

@jbosolutions
Copy link

Do you know how disable all auto codes on Instagram? Did you resolved it?

@tmxd09887
Copy link
Author

sms auth is required by Instagram, I don't think it can be disabled

@jbosolutions
Copy link

This is the error I get when I put the verification code in console:

ChallengeResolveMixin.challenge_resolve() takes 2 positional arguments but 3 were given

Maybe because I have another account using Instagrapi in same computer?

@tmxd09887
Copy link
Author

I don't know how to disable it, but there must be something wrong with the verification code processing.

@sunmasters
Copy link

It means, you should save session data. Reuse it again to avoid asking OTP again

@tmxd09887
Copy link
Author

It means, you should save session data. Reuse it again to avoid asking OTP again

Hello, this is the first time logging in, there is no existing session data

@sunmasters
Copy link

Is device data is same?

@tmxd09887
Copy link
Author

The device is generated by instagrapi, so it is definitely different from the one used when registering. But the key point is that there is a bug in the process of submitting the SMS verification code.

@sunmasters
Copy link

sunmasters commented Jul 15, 2024

Maybe API need update. You have to update in your system .

I think you can give user agent as your device?

@tmxd09887
Copy link
Author

Maybe API need update. You have to update in your system .

I think you can give user agent as your device?

Yes, this could be a way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants