question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

400 Bad Request; Please wait a few minutes before you try again.

See original GitHub issue

Bug Report

Form

Requirements

Platform

  • I’m using Node.js version v16.14.2

Description

After a short period of time, when I make changes, this error occurs to me

I lost one of my Instagram accounts and whenever I tried to log in, this error was displayed Please wait a few minutes before you try again. I created a new account, the same thing happened again, but my account was not closed, but the problem is still there. I read other issues and did not see the correct solution

Code

const instagram = async () => {
  const ig = new IgApiClient();
  ig.state.generateDevice(process.env.IG_USERNAME);
  try {
    const loggedInUser = await ig.account.login(
      process.env.IG_USERNAME,
      process.env.IG_PASSWORD,
    );
  } catch (e) {
    throw e;
  }
};

Error and Output

node:internal/process/promises:279

             triggerUncaughtException(err, true /* fromPromise */);
            ^

IgResponseError: POST /api/v1/accounts/login/ - 400 Bad Request; Please wait a few minutes before you try again.
    at Request.handleResponseError (C:\Users\mmdzov\Desktop\test\insta\node_modules\instagram-private-api\dist\core\request.js:126:16)
    at Request.send (C:\Users\mmdzov\Desktop\test\insta\node_modules\instagram-private-api\dist\core\request.js:54:28)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:23

github_iconTop GitHub Comments

1reaction
kingbotsscommented, Aug 31, 2022

That depends on proxy.

Maybe you can close the issue.

1reaction
kingbotsscommented, Aug 29, 2022

It is common error. Change IP or wait 1+ hour

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix "Please wait a few minutes before you try again" on ...
Instagram says, “Please wait a few minutes before trying again” because you might have logged in and out too fast, or you're using...
Read more >
The Best Fixes for Error “Please Wait A Few Minutes Before ...
The “Please wait a few minutes before you try again” error message on Instagram usually occurs when users log in and out extremely...
Read more >
How To Fix "Please wait a few minutes before you try again ...
If you receive the "Please wait a few minutes before you try again" error message, it means that your IP address has been...
Read more >
How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
The 400 Bad Request error indicates that the server cannot or process the request due to a client error. Read about the common...
Read more >
Fix please wait a few minutes before you try again instagram ...
This tutorial is about how to fix instagram please wait a few minutes before you try again problem.This solution works for all android ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found