[x] I've debugged my code using the DEBUG variable.
Platform
[x] I'm using Node.js version v8.12.0
[ ] I'm using electron
[ ] I'm using the browser YOUR_BROWSER_AND_VERSION
[ ] I'm using some other environment YOUR_ENV
Description
I'm trying to login into my account from a script inside a VPS outside my country. Each time I try to login, a splash screen on the IG app shows up where I check "It was me".
I am given a challenge and receive an SMS. After I send the challenge code, I'm logged out again.
If I send a wrong challenge code, I get an error like this,
ig:request Requesting POST /api/v1/challenge/***********/ePjtVmnoSp/ +55s
ig:request Request POST [object Object] failed: {"message":"Please check the code we sent you and try again.","status":"fail"}
Most of the time, after failing, I try again and I get this 502 error.
[13.02.2020 01:44.21.140] [ERROR] IgResponseError: POST /api/v1/accounts/login/ - 502 Bad Gateway;
at Request.handleResponseError (/home/ubuntu/instaccept/node_modules/instagram-private-api/src/core/request.ts:171:12)
at Request.send (/home/ubuntu/instaccept/node_modules/instagram-private-api/src/core/request.ts:82:24)
at <anonymous>
Form
Put an
[x]
if you meet the condition, else leave[ ]
.Requirements
DEBUG
variable.Platform
v8.12.0
YOUR_BROWSER_AND_VERSION
YOUR_ENV
Description
I'm trying to login into my account from a script inside a VPS outside my country. Each time I try to login, a splash screen on the IG app shows up where I check "It was me".
I am given a challenge and receive an SMS. After I send the challenge code, I'm logged out again.
Here's my code: https://gist.github.com/redraw/37d077f6d71f320649923a58fa8c9ecb#file-run-js-L30
And here's what I get (with
DEBUG=ig:*
)If I send a wrong challenge code, I get an error like this,
Most of the time, after failing, I try again and I get this 502 error.