Create account is outdated/doesn't work
See original GitHub issueBug Report
I believe Instagram updated their account creation endpoint(s).
Form
Requirements
- I’ve searched the Issues
- I’ve read the basic concepts
- I’m using the latest version
- I’ve debugged my code using the
DEBUG
variable.
Platform
- I’m using Node.js version
14.16.0
- I’m using electron
Description
Check the account creation functionality. Once the app constants are updated (Open MR here: https://github.com/dilame/instagram-private-api/pull/1572), and you attempt to create an account, you’re given a 400 error:
Code
require('dotenv').config();
const { IgApiClient } = require('instagram-private-api');
const ig = new IgApiClient();
ig.state.generateDevice("TEST");
ig.state.proxyUrl = process.env.IG_PROXY;
(async () => {
const username = "XXX",
email = "XXX@XXX.com",
password = "XXX",
first_name = "XXX";
ig.account.create({ username, password, email, first_name });
})()`
Error and Output
(node:29771) UnhandledPromiseRejectionWarning: IgResponseError: POST /api/v1/accounts/create/ - 400 Bad Request;
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Results From Across the Web
Your account settings are out-of-date in Mail or Calendar for ...
The most common cause of an out-of-date account is an incorrect password. Select Fix account in the notification bar at the top of...
Read more >Don't Have the New Instagram Features on Your Account? Try ...
Don't have new Instagram features yet? Still missing some old Instagram features? Try these tricks.
Read more >npm outdated doesn't work · Issue #2048 · lerna/lerna - GitHub
I would expect npm to be able to tell me the outdated dependencies of a package even if it references packages in the...
Read more >Can't Add a New Email Account to the Windows Mail App? Try ...
Most of the time, adding a new email account in the Mail app is pretty straightforward, but sometimes it doesn't work.
Read more >Resolve issues signing in to your AWS console
Resolving issues with your account If your account has been closed for more than 90 days, your sign-in information no longer exists. To...
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
This is out of scope for me. I’m trying to make sure the library compiles but can’t guarantee that everything will work. Creating accounts is heavily checked by Instagram to make sure only real people create accounts and I can respect that. If anyone opens a PR to fix/patch this, I’m totally fine with merging it.
That’s another issue but I beleive you can set the appropriate headers to receive gzip/zstd in responses. Related: mitmproxy/mitmproxy#4394
Pm me on telegram