ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.69k stars 1.47k forks source link

Checkpoint Challenge required.... #1186

Open jamescavallo opened 4 years ago

jamescavallo commented 4 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


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="user", password="pass")
followers = bot.get_user_followers(bot.user_id)

Error/Debug Log:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

Running the bot off a VPS, whenever checkpoint challenge occurs and user clicks "this was me" then re logs in a new challenge occurs. Im guessing that this is because the code randomizes what kind of device it logs in from?

duplicate-issues[bot] commented 4 years ago

Hey @jcavallo88,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job :smile:

If not, the maintainers will get to this issue shortly.

Cheers, Your Friendly Neighborhood ProBot

bruvv commented 4 years ago

Please see this: https://github.com/instagrambot/instabot/issues/1224 you have 2fa enabled I assume?

hydrotik commented 4 years ago

Is there even a way to disable 2FA in IG? I took a quick look and didn't see anything. Could be cause I was using a business account. I assume it's standard across all types of accounts? I tried exporting a cookie and used the code that navigates the 2FA but it doesn't seem to work.

4godev commented 4 years ago

Hello, has this situation been updated? I'm having the same problem, instagram asks for login confirmation and I can't access the account.

2020-02-03 13:47:33,997 - DEBUG - Responsecode indicates error; response content: b'{"message": "challenge_required", "challenge": {"url": "https://i.instagram.com/challenge/6525713726/yCJm9h2FwX/", "api_path": "/challenge/6525713726/yCJm9h2FwX/", "hide_webview_header": true, "lock": true, "logout": false, "native_flow": true}, "status": "fail", "error_type": "checkpoint_challenge_required"}' 2020-02-03 13:47:34,000 - ERROR - Request returns 400 error! 2020-02-03 13:47:34,001 - INFO - Instagram's error message: challenge_required 2020-02-03 13:47:34,003 - INFO - Error type: checkpoint_challenge_required 2020-02-03 13:47:34,004 - INFO - Checkpoint challenge required...

ChadLei commented 4 years ago

getting this error as well, login info is correct, 2fa is not enabled on ig, what else could be the issue? even after manually clearing challenge it just repeats

bruvv commented 4 years ago

Your password needs to be changed. Change your password. Remove the secret file and the json cookie file and you're good to go.

TrevisGordan commented 4 years ago

@bruvv 'Remove the secret file and the json cookie' Remove what where? I have the same issue..

thatdudealso commented 4 years ago

I have the same issue please help @bruvv

neilctwu commented 4 years ago

encountered same error here, any solution?

RedxLus commented 4 years ago

Same error here

leon-wbr commented 4 years ago

Please see https://github.com/instagrambot/instabot/issues/1293#issuecomment-610935629 for a quick workaround.