Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when 'challenge_required' I get "IgNoCheckpointError: No checkpoint data available" #1804

Open
4 of 6 tasks
martincanavate opened this issue Oct 29, 2024 · 15 comments
Open
4 of 6 tasks
Labels
bug unconfirmed This issue hasn't been read/confirmed/accepted by an admin

Comments

@martincanavate
Copy link

Requirements

Platform

  • I'm using Node.js
  • I'm using electron

Description

Not able to resolve challenges

I'm using the code as follows:

return Bluebird.try(async () => {
            await this.ig.simulate.preLoginFlow();
            this.loggedInUser = await this.ig.account.login(username, password);
            return this.loggedInUser;
        }).catch(IgCheckpointError, async () => {
            console.log('Checkpoint detected:', this.ig.state.checkpoint);
            
            // Attempt to automatically resolve the checkpoint
            await this.ig.challenge.auto(true);
            console.log('Challenge info:', this.ig.state.checkpoint);
            
            // If the checkpoint was resolved automatically, try logging in again
            this.loggedInUser = await this.ig.account.login(username, password);
            return this.loggedInUser;
        }).catch(error => {
            console.error('Login error:', error);
            throw error;
        });

And whenever there is a 'challenge_required' I detect the checkpoint well but when trying to solve the challenge (doesn't matter if I use auto, or deltaLoginReview) I get the " IgNoCheckpointError: No checkpoint data available" error:

Checkpoint detected: [Object: null prototype] {
  message: 'challenge_required',
  challenge: [Object: null prototype] {
    url: 'https://i.instagram.com/challenge/AXEJiWrkuYu2WmMMMJAClo_J3ORACBVvgRvRqUmX3fPfMzHE67i7oIICOXFvj5FdZuwvVL0/Afy6I9yXM1SVpoXJaxHrxmPtHKnvB8H0cYToFBNj0VhIfTg1N0twdmtNlkGrrvhVgWDtake9SJYZYQ/',
    api_path: '/challenge/AXEJiWrkuYu2WmMMMJAClo_J3ORACBVvgRvRqUmX3fPfMzHE67i7oIICOXFvj5FdZuwvVL0/Afy6I9yXM1SVpoXJaxHrxmPtHKnvB8H0cYToFBNj0VhIfTg1N0twdmtNlkGrrvhVgWDtake9SJYZYQ/',
    hide_webview_header: true,
    lock: true,
    logout: false,
    native_flow: true,
    flow_render_type: 0,
    challenge_context: 'Af55vyTPvrCJBKw9nAKOKiu4FLKpKGAK0Fr6DCS1_JsXV3vW_hj3M1Fa_0EJTcKOuXs2ql5lhZ7N20jQUvH5FegZTwprHwsnzCWcVH39jBDM7Junjl9GI14WvhnNO37u6syZXnbMIjAcEE3qGZZhcv42PLLGC_ORivo_oMV49LVHMA70RMJo7oynAQ_oodKSDXfAup64Kx1BqCIO3fanPki0oZxfPbi-vaVhUDMENgDzlchQV7cr82hgKsyrxOiyH_s8bB-Uf7fOPKfGnbJiB7_VmBm73exfHoRoFaxRFgFptP0h28ANAfNgnBv9V-Xs9U9dDoIYk6fJVIIhs5jz0o2-lEGptvk7q4U6z5mm6ClB42QhrJGiDG1Z-zjA1kN6pQ8PIKf5nsj_d68uJw5eF7Rprs2Q1HhMlbNQKknaQf6W76cfmaILm2zlHIJ7scwY-pZnUCN-9jPZBvOv9-vxV44e0TjkMCK2v6RfKsA4u5Lokf_j6tK5SgMd_62IkKDFTfJoMXHAbOHK'
  },
  status: 'fail',
  error_type: 'checkpoint_challenge_required'
}
Login error: IgNoCheckpointError: No checkpoint data available
    at get challengeUrl (webpack-internal:///(rsc)/./node_modules/instagram-private-api/dist/core/state.js:114:19)
    at ChallengeRepository.state (webpack-internal:///(rsc)/./node_modules/instagram-private-api/dist/repositories/challenge.repository.js:9:36)
    at ChallengeRepository.auto (webpack-internal:///(rsc)/./node_modules/instagram-private-api/dist/repositories/challenge.repository.js:64:24)
    at async eval (webpack-internal:///(rsc)/./src/server/api/services/instagram/instagramService.ts:49:13)
From previous event:
    at process.processImmediate (node:internal/timers:478:21)
    at process.callbackTrampoline (node:internal/async_hooks:130:17)
@martincanavate martincanavate added bug unconfirmed This issue hasn't been read/confirmed/accepted by an admin labels Oct 29, 2024
@sunmasters
Copy link

This type challenge not exist on this repo.

@uwuv3
Copy link

uwuv3 commented Dec 8, 2024

@sunmasters
Copy link

Maybe captcha solution?

@uwuv3
Copy link

uwuv3 commented Dec 9, 2024

Maybe captcha solution?

nope, in this captcha they give url (with pop up on phone) and you say yes i am,i can clearly get captcha solving but i cant see if it works it says

{"action":"close","status":"ok"}

image
Yes i am button action

fetch("https://i.instagram.com/api/v1/challenge/web/action/", {
  "headers": {
    "accept": "*/*",
    "accept-language": "tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7",
    "content-type": "application/x-www-form-urlencoded",
    "priority": "u=1, i",
    "sec-ch-ua": "\"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "x-asbd-id": "1**4**",
    "x-csrftoken": "nQi4a9***cl9D5xa******BKJtz9ugEi",
    "x-ig-app-id": "936****43392459",
    "x-ig-www-claim": "0",
    "x-instagram-ajax": "*****0f9**35",
    "x-requested-with": "XMLHttpRequest",
    "cookie": "ig_did=7F032EB9-****-****-****-12F****FC4F5; mid=Z1Xxl******E4U****ySWeFlG3MlG; ig_nrcb=1; ds_user_id=62*****81883; csrftoken=nQi4a9c*****D5xayoTtrkBKJtz9ugEi; ps_l=1; ps_n=1; ig_direct_region_hint=\"NHA\\0546*****581883\\05****5226224:01f7f8602ea4b4c02df495b0fecb69e9e762f9370082def5c460f485cfdabe74635d7f2b\"; sessionid=62336581883%3AW24OCLE2bxDscM%3A25%3AAYevPYayUmEXxm****hFxJ******9***zMtq_r4nQ; wd=818x641; rur=\"HIL\\054***365**883\\0541****87971:01f739*****b5e1****434ad80b42527***c5c8c7695721f5ed4404f3f8365fd91bd1\"",
    "Referer": "https://i.instagram.com/challenge/?next=/",
    "Referrer-Policy": "strict-origin-when-cross-origin"
  },
  "body": "choice=0&next=%2F",
  "method": "POST"
}); ;
fetch("https://graph.instagram.com/logging_client_events", {
  "headers": {
    "content-type": "application/x-www-form-urlencoded",
    "sec-ch-ua": "\"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "Referer": "https://i.instagram.com/",
    "Referrer-Policy": "strict-origin-when-cross-origin"
  },
  "body": "access_token=acctoken&message=%7B%22app_uid%22%3A%*****365****3%22%2C%22app_id%22%3A%229366****3****59%22%2C%22app_ver%22%3A%221.0.0%22%2C%22data%22%3A[%7B%22time%22%3A1733751996.956%2C%22name%22%3A%22instagram_client_password_encryption_payload_sent%22%2C%22extra%22%3A%7B%22encrypt_request_uuid%22%3A%220caf2fc5-a908-4ac0-a03d-fa5687bd55ad%22%2C%22has_encrypted_params%22%3Afalse%2C%22has_plaintext_params%22%3Afalse%2C%22referrer_uri%22%3A%22https%3A%2F%2Fi.instagram.com%2Fchallenge%2F%3Fnext%3D%2F%22%2C%22request_uri%22%3A%22%2Fapi%2Fv1%2Fchallenge%2Fweb%2Faction%2F%22%2C%22tag%22%3A%22%23PWD_INSTAGRAM_BROWSER%22%2C%22version%22%3A10%7D%7D]%2C%22log_type%22%3A%22client_event%22%2C%22seq%22%3A2%2C%22session_id%22%3A%22193abab9faa-884b0c%22%2C%22device_id%22%3A%227F032EB9-****-****-****-********C4F5%22%2C%22claims%22%3A[]%7D",
  "method": "POST"
}); 
fetch("https://i.instagram.com/logging/falco", {
  "headers": {
    "content-type": "application/x-www-form-urlencoded",
    "sec-ch-ua": "\"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "Referer": "https://i.instagram.com/challenge/?next=/",
    "Referrer-Policy": "strict-origin-when-cross-origin"
  },
  "body": "access_token=acctoken&message=%7B%22app_uid%22%3A%*****365****3%22%2C%22app_id%22%3A%229366****3****59%22%2C%22app_ver%22%3A%221.0.0%22%2C%22data%22%3A[%7B%22time%22%3A1733751996.956%2C%22name%22%3A%22instagram_client_password_encryption_payload_sent%22%2C%22extra%22%3A%7B%22encrypt_request_uuid%22%3A%220caf2fc5-a908-4ac0-a03d-fa5687bd55ad%22%2C%22has_encrypted_params%22%3Afalse%2C%22has_plaintext_params%22%3Afalse%2C%22referrer_uri%22%3A%22https%3A%2F%2Fi.instagram.com%2Fchallenge%2F%3Fnext%3D%2F%22%2C%22request_uri%22%3A%22%2Fapi%2Fv1%2Fchallenge%2Fweb%2Faction%2F%22%2C%22tag%22%3A%22%23PWD_INSTAGRAM_BROWSER%22%2C%22version%22%3A10%7D%7D]%2C%22log_type%22%3A%22client_event%22%2C%22seq%22%3A2%2C%22session_id%22%3A%22193abab9faa-884b0c%22%2C%22device_id%22%3A%227F032EB9-****-****-****-********C4F5%22%2C%22claims%22%3A[]%7D",
  "method": "POST"
});

@uwuv3
Copy link

uwuv3 commented Dec 16, 2024

..

@neliocaa
Copy link

same here, now im trying use 2fa to avoid falling into this challenge, however, it shows an error in the code and verification, I am using this example: https://github.com/dilame/instagram-private-api/blob/master/examples/2fa-sms-login.example.ts

@BURSUC31
Copy link

BURSUC31 commented Dec 19, 2024

Aren't any headers in the browser that should be added to simulate the browser request? this way you won't be getting so many errors or it s because of the volume of requests per sec?I got the same problem here

@uwuv3
Copy link

uwuv3 commented Dec 19, 2024

I think they use websocket system

@sunmasters
Copy link

I think they use websocket system

I don't think so. When account has challenge, no socket authentication possible

@BURSUC31
Copy link

websocket connection to check if the browser sends back data to server like a ping pong or idk and if that ping pong is maintained the challenge wont appear? i thought someone from here would know a solution for this problem

@uwuv3
Copy link

uwuv3 commented Dec 21, 2024

I think they use websocket system

I don't think so. When account has challenge, no socket authentication possible

i dont get this challenge in browser or my phone, thats why i cant solve it

@uwuv3
Copy link

uwuv3 commented Dec 21, 2024

and when i get this challenge browser says "an error occurred", and i cant seee instagram page (Unless I solve the challenge with url) it locks account

@sunmasters
Copy link

sunmasters commented Dec 21, 2024

Try to reopen the app. Force close app first.
Do refresh in the profile page multiple times

@uwuv3
Copy link

uwuv3 commented Dec 21, 2024

Try to reopen the app. Force close app first. Do refresh in the profile page multiple times

unlocking by entering the challenge url

@sunmasters
Copy link

It could be captcha challenge, have to submit Google captcha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unconfirmed This issue hasn't been read/confirmed/accepted by an admin
Projects
None yet
Development

No branches or pull requests

5 participants