Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Unable to login: 400 Error checkpoint challenge required #838

Closed
4 of 7 tasks
blazephoenix opened this issue Mar 11, 2019 · 14 comments
Closed
4 of 7 tasks

Unable to login: 400 Error checkpoint challenge required #838

blazephoenix opened this issue Mar 11, 2019 · 14 comments

Comments

@blazephoenix
Copy link

blazephoenix commented Mar 11, 2019

Before submitting an issue, make sure you have:

  • Updated to the latest version
  • Read the README and docs
  • Searched the bugtracker for similar issues including closed ones

Purpose of your issue?

  • Bug report (encountered problems/errors)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here:

Code:

# Example code that will produce the error reported

from instabot import Bot


bot = Bot()
bot.login(username="USERNAME", password="PASSWORD")
user_id = bot.get_user_id_from_username("lego")
user_info = bot.get_user_info(user_id)
print(user_info['biography'])

Error/Debug Log:

2019-03-11 13:46:10,526 Instabot Started
2019-03-11 13:46:11,780 Request returns 400 error!
2019-03-11 13:46:11,780 Instagram's error message: challenge_required
2019-03-11 13:46:11,781 Error type: checkpoint_challenge_required
2019-03-11 13:46:11,782 Username or password is incorrect.
2019-03-11 13:46:11,782 Not logged in!

Describe your issue

I downloaded the bot just a few hours ago and I'm unable to login from my home IP without a proxy. I'm using the sample code given in the developer documentation.

@arlidge
Copy link

arlidge commented Mar 12, 2019

Are you also logged in with your phone from the same ip?

@JudeMurphy
Copy link

I'm also having a problem with this as well, with two accounts. Not on the same IP. Keeps saying unusual activity, and unable to login with the bot. @blazephoenix

@blazephoenix
Copy link
Author

@arlidge I logged out from the phone and tried with the same IP, the issue still persists

@arlidge
Copy link

arlidge commented Mar 17, 2019

@blazephoenix - The "challenge required" is when Instagram detects suspicious activity on your account, ie a device that has never logged in. Did Instagram send you an email? Try logging into instagram from your computer, it might then offer the challenge - Which is usually a code they will txt you. Once you are in on your computer, sign out again, then try running the bot from the same IP you used for your computer, ie your home IP. Don't try and run this on a remote server unless that IP will be the only IP you use for it, otherwise it will constantly trigger the challenge. I had this issue at first. @JudeMurphy This might also help you out. If you get the Challenge you have to go through the steps on the same IP you use the bot on. That appears to be the trick. Also - if there is a cookie associated with the failed login, delete it then start the bot to get a new cookie.

@blazephoenix
Copy link
Author

@arlidge That worked. Thanks!

@TheGlobalist
Copy link

I am experiecing the same issue but the comment by @arlidge didn't help me

@arlidge
Copy link

arlidge commented Mar 27, 2019

Hi @TheGlobalist - Please start from beginning. Are you logged out of instagram on all devices? Have you completed the instagram challenge request? Then logged out again? then delete cookie from directory you ran the bot from? Then attempt to run bot again?

@AKwoKWH
Copy link
Contributor

AKwoKWH commented May 13, 2019

Same issue
I run my script on my PC getting the the challenge.
On my phone, there is a popup asking if the login attempt is me or not.
I clicked "it was me" , but still , I cant login from my PC terminal

@TheGlobalist
Copy link

Hi @TheGlobalist - Please start from beginning. Are you logged out of instagram on all devices? Have you completed the instagram challenge request? Then logged out again? then delete cookie from directory you ran the bot from? Then attempt to run bot again?

Hey arlidge, sorry this took forever to reply.
Yes I tried everything, also with accounts that were never on bot services but I still get the problem

@nandezer
Copy link

nandezer commented Apr 2, 2020

Hi @TheGlobalist - Please start from beginning. Are you logged out of instagram on all devices? Have you completed the instagram challenge request? Then logged out again? then delete cookie from directory you ran the bot from? Then attempt to run bot again?

Where do I find the file with the cookie? I can't seem to find it.
I have try everything mentioned above and still not working

@arlidge
Copy link

arlidge commented Apr 2, 2020

Hi @nandezer you should be able to "pip3 install -U instabot" and then jun an example script from the instabot git repo. Then first time running it should ask for login and password. It does not store the cookie in the same place it used to.... sorry.

@nandezer
Copy link

nandezer commented Apr 3, 2020

Hi @nandezer you should be able to "pip3 install -U instabot" and then jun an example script from the instabot git repo. Then first time running it should ask for login and password. It does not store the cookie in the same place it used to.... sorry.

Hey @arlidge thanks for the reply. After much going around I manage to insert an email code confirmation through the cmd and get log in thanks!

My problem now is that I get the "feedback_required" error, and all my actions get blocked.

@arlidge
Copy link

arlidge commented Apr 4, 2020

Hi @nandezer are you signed in to the same account with another device on the same network?

@nandezer
Copy link

nandezer commented Apr 4, 2020

Hi @nandezer are you signed in to the same account with another device on the same network?

Hey, I am signed up on an IG app on my phone (via wifi), IG app & IG website on my laptop

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants