[ ] I've debugged my code using the DEBUG variable.
Platform
[X] I'm using Node.js version 16
[ ] I'm using electron
Description
I'm having the error below when we try to login to an instagram account and it needs to go through the ig.challenge.auto(true) function. Apparently some information is missing in the POST, but I can't find documentation anywhere saying what should be sent
Code
Add a meaningful section of your code here. If you are using TypeScript replace js with typescript.
If you've got an error put it here.
You can get the stacktrace in the most environments using
Error.stack (MDN Docs).
400 Bad Request; challenge_required - instagram-private-api/dist/repositories/challenge.repository.js:61:13)
ERROR: POST /api/v1/challenge/reset/AXFMzVXfPZm8Tv2x_g7YT1e1CH4BMtT0x_oSasLmIGtZLmZh9_eiSWYGQd2UatXBTYSR/AfxjU7WgXn6sTlIYhRp6-jq35JA_XRFNsOT4OdkXPn5cV2a5tq9k46QhP_dhPhHIlxShmI5mn6HO_g/ - 400 Bad Request; challenge_required err: { "type": "IgCheckpointError", "message": "POST /api/v1/challenge/reset/AXFMzVXfPZm8Tv2x_g7YT1e1CH4BMtT0x_oSasLmIGtZLmZh9_eiSWYGQd2UatXBTYSR/AfxjU7WgXn6sTlIYhRp6-jq35JA_XRFNsOT4OdkXPn5cV2a5tq9k46QhP_dhPhHIlxShmI5mn6HO_g/ - 400 Bad Request; challenge_required", "stack": IgCheckpointError: POST /api/v1/challenge/reset/AXFMzVXfPZm8Tv2x_g7YT1e1CH4BMtT0x_oSasLmIGtZLmZh9_eiSWYGQd2UatXBTYSR/AfxjU7WgXn6sTlIYhRp6-jq35JA_XRFNsOT4OdkXPn5cV2a5tq9k46QhP_dhPhHIlxShmI5mn6HO_g/ - 400 Bad Request; challenge_required at Request.handleResponseError (/opt/gosac/app/backend/node_modules/instagram-private-api/dist/core/request.js:108:24) at Request.send (/opt/gosac/app/backend/node_modules/instagram-private-api/dist/core/request.js:54:28) at async ChallengeRepository.reset (/opt/gosac/app/backend/node_modules/instagram-private-api/dist/repositories/challenge.repository.js:80:26) at async ChallengeRepository.auto (/opt/gosac/app/backend/node_modules/instagram-private-api/dist/repositories/challenge.repository.js:61:13) }
Bug Report
Form
Put an
[x]
if you meet the condition, else leave[ ]
.Requirements
DEBUG
variable.Platform
Description
I'm having the error below when we try to login to an instagram account and it needs to go through the ig.challenge.auto(true) function. Apparently some information is missing in the POST, but I can't find documentation anywhere saying what should be sent
Code
Add a meaningful section of your code here. If you are using TypeScript replace
js
withtypescript
.Error and Output
If you've got an error put it here. You can get the stacktrace in the most environments using
Error.stack
(MDN Docs).