429 Error - Please wait a few minutes before you try again.
See original GitHub issueGeneral Question
Form
- I’ve searched the Issues
- I’ve read the basic concepts
- I’m using the latest version
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:
- Created 3 years ago
- Reactions:3
- Comments:6
Top 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 >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
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…
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