dilame / instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.
MIT License
5.93k stars 1.14k forks source link

Failed to approve thread error #1104

Closed Ektaros closed 4 years ago

Ektaros commented 4 years ago

General Question

Read the Notes and fill out the form. Switch to Preview for reading.

Notes

Your issue will be closed if you violate any rule below.

Form

Put an [x] if you meet the condition, else leave [ ].

Question

A specific question, so it's understandable to anyone. You may add pictures.

YOUR QUESTION HERE This happens on the rarest occasion ive seen it like 3 times in a whole month of active usage. Then using this.ig.directThread.approve(threadId) i get this error:

"error": {
    "name": "IgResponseError",
    "message": "POST /api/v1/direct_v2/threads/*valid threadId here*/approve/ - 
       500 Internal Server Error; Thread id *same valid threadId here* failed checkpoint",
    "stack": "IgResponseError: POST /api/v1/direct_v2/threads/*valid threadId here*/approve/ - 
500 Internal Server Error; Thread id *valid threadId here* failed checkpoint
    at Request.handleResponseError (/usr/backend/node_modules/instagram-private-api/src/core/request.ts:171:12)
    at Request.send (/usr/backend/node_modules/instagram-private-api/src/core/request.ts:82:24)
    at DirectThreadRepository.approve (/usr/backend/node_modules/instagram-private-api/src/repositories/direct-thread.repository.ts:15:22)"
  }

What does this error mean? Or is it acctually just instagram not working proparly?

Nerixyz commented 4 years ago

Please add the response (error.reponse.body).

Ektaros commented 4 years ago

Added logs to see the body. Waiting for the next occurance

Ektaros commented 4 years ago

body is not that useful :(

 "body": {
    "message": "Thread id 340282366841710300949128188723301650131 failed checkpoint",
    "status": "fail"
  }
Nerixyz commented 4 years ago

Yeah that's on instagrams side. You can wait a few seconds and then try this again.