Unable to resolve "this was me" challenge with ig.challenge.auto(true)
See original GitHub issueSo I’ve looked through all the issues and examples and I still cannot get this to work so sorry if I am missing something simple. I am successfully able to login with two of my accounts with no challenges necessary, but I get IgCheckpointError on a friend’s account that I am trying to use. I am using a third party proxy with all of my requests. My code looks like so:
console.log('request received...')
ig = new IgApiClient();
ig.state.generateDevice(username);
// apply agent class to request library defaults
ig.request.defaults.agentClass = shttps;
ig.request.defaults.agentOptions = {
// @ts-ignore
socksHost: '@@@', // proxy hostname
socksPort: 0000,
socksUsername: '0000',
socksPassword: '000',
};
console.log("authenticating...");
bluebird.try(async () => {
process.nextTick(async () => await ig.simulate.postLoginFlow());
auth = await ig.account.login(username, password);
console.log("successfully authenticated")
generateFollowers(response)
}).catch(IgCheckpointError, async () => {
console.log("authentication requires challenge...");
console.log("checkpoint info:");
console.log(ig.state.checkpoint);
console.log(await ig.challenge.auto(true));
console.log("challenge info:");
console.log(ig.state.checkpoint);
// const { code } = await inquirer.prompt([
// {
// type: 'input',
// name: 'code',
// message: 'Enter code',
// },
// ]);
// console.log(await ig.challenge.sendSecurityCode(code));
console.log("successfully authenticated!")
generateFollowers(response)
})
As you can see I have commented out the sendSecurityCode part of it because I am not receiving a code and the ig.state.checkpoint is null at that point. I have tried with and without the security code part and nothing seems to work, and I usually get ‘Unhandled rejection IgResponseError: POST /api/v1/challenge/reset/3662491500/iOHcynqQAa/ - 500 Internal Server Error;’
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:10
Top Results From Across the Web
How to Fix Challenge Required Instagram Error (Dec 2022)
Another easy solution is to clear the cache. You can do so directly from your phone settings.
Read more >Instagram Error Challenge Required – What to Do - Alphr
1. One of the first things to try is checking for Instagram outages. The best way to do that is by visiting Instagram's...
Read more >Bonuses on Instagram - Instagram Help Center
Bonuses are opportunities for you to earn money directly from Instagram. If you qualify to earn a bonus, you'll be notified in the...
Read more >How to Fix Instagram Challenge Required Error On iPhone ...
Let's show you how to fix the Instagram error " Challenge Required" on your iPhone. In this video, I walk you through the...
Read more >Job Interview Question: "How Do You Handle a Challenge?"
Most importantly, you want to be able to discuss a real professional challenge or problem, not an arbitrary or annoying occurrence.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Having the same issue. Does anyone have a solution or a way to workaround this?
This thread has been inactive for a long time now, so it will be closed. If this is still an issue, reopen it.