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.

429 Error - Please wait a few minutes before you try again.

See original GitHub issue

General Question

Form

Question

I was wondering how instagram throws this error when creating an account? I am using HTTP proxies (yes, they are valid), but every single request returns a 429 error. I’ve waited a few minutes, even changed my account data, but the response is still the same.

Code

ProxyHandler is a class I wrote to manage a list of proxies for rotating. I’ve censored any personal information by replacing it with *******

const { IgApiClient } = require('instagram-private-api');
const ProxyHandler = require('./helpers/ProxyHandler.class');

function sleep(ms){
    return new Promise(res => setTimeout(res, ms));
}

(async ()=>{
    const Proxy = new ProxyHandler();
    await sleep(1000);
    const ig = new IgApiClient();

    let proxy = Proxy.randomProxy();
    let username = '*******';

    ig.state.generateDevice(username);

    ig.state.proxyUrl = `http://${proxy.host}:${proxy.port}`;

    await ig.account.create({username: username, password: '*******', email: '*******', first_name: '*******'})
    .catch(console.log);
})();

Error and Output

IgResponseError: POST /api/v1/accounts/create/ - 429 -; Please wait a few minutes before you try again.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

5reactions
mdingscommented, Dec 2, 2020

What worked for me is going to the web interface and logging in again with the same account that you’re using with the api. It’s probably just completely arbitrary but it worked for me so thought I’d share it here as well.

Edit: Never mind, it appeared to be a lucky shot. Failing again with the same error…

1reaction
restylercommented, Jan 25, 2021

I got the same issue recently. Most of HTTP proxies are already flagged by Instagram as proxies, so they throw 429 on literally first call. For POST operations your best bet is using your own home network or better residential proxies. For GET operations on public accounts, proxy-balancing solution is available: https://rapidapi.com/restyler/api/instagram40 , it is used it in this downloader: https://github.com/restyler/instaloader

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Please wait a few minutes before you try again.", "status": ...
ClientError Please wait a few minutes before you try again. (Code: 429, Response: {"message": "Please wait a few minutes before you try again.",...
Read more >
How to Fix 429 Too Many Requests Error
The HTTP 429 error is returned when too many requests are made to a page within a short period of time. Find out...
Read more >
What an HTTP Error 429 Means & How to Fix It
The simplest way to fix an HTTP 429 error is to wait to send another request. Often, this status code is sent with...
Read more >
The Best Fixes for Error “Please Wait A Few Minutes Before ...
Fix 1: Change Your Mobile Network ... When the “Please wait a few minutes before you try again” error message pops up on...
Read more >
How to Fix "Please wait a few minutes before you try again ...
The error message will typically last for 24 hours to 48 hours. Many Instagram users reported that they managed to access their account...
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