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.

Create account is outdated/doesn't work

See original GitHub issue

Bug 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:open
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
Nerixyzcommented, Feb 25, 2022

I hope @Nerixyz will look into this.

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.

Their encoding of text is not support by this lib unless it has dict for decode. this lib does not support encoding for x-fb-dz

That’s another issue but I beleive you can set the appropriate headers to receive gzip/zstd in responses. Related: mitmproxy/mitmproxy#4394

0reactions
SaeidBcommented, Dec 21, 2022

need direct api, no third-party please.

Pm me on telegram

Read more comments on GitHub >

github_iconTop 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 >

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