dilame / instagram-private-api

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

Error showing up everytime a application starts #1576

Open notsapinho opened 2 years ago

notsapinho commented 2 years ago

Bug Report

Requirements

Description

Everytime I start an application with the lib this error shows up

Error and Output

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

IgNotFoundError: GET /api/v1/fbsearch/suggested_searches/?type=blended - 404 Not Found;
    at Request.handleResponseError (D:\Projetos\instagram-profile-downloader\node_modules\instagram-private-api\dist\core\request.js:103:20)
    at Request.send (D:\Projetos\instagram-profile-downloader\node_modules\instagram-private-api\dist\core\request.js:54:28)
    at async FbsearchRepository.suggestedSearches (D:\Projetos\instagram-profile-downloader\node_modules\instagram-private-api\dist\repositories\fbsearch.repository.js:7:26)
Leito-CPU commented 2 years ago

Happens to me too. Seems like Instagram did some changes to the "suggestedSearches" endpoint. You could as a quick diy hotfix comment out the 2 lines calling the endpoint in "get postLoginFlowRequests()" inside the "./services/simulate.service.js" file. After that everything that does not use the endpoint should be working again.

grafik

0cto-pus commented 2 years ago

Happens to me too.

node:internal/process/promises:246 triggerUncaughtException(err, true / fromPromise /); ^

IgNotFoundError: GET /api/v1/fbsearch/suggested_searches/?type=users - 404 Not Found; at Request.handleResponseError (C:\Users\Efe\Desktop\insta\node_modules\instagram-private-api\dist\core\request.js:103:20) at Request.send (C:\Users\Efe\Desktop\insta\node_modules\instagram-private-api\dist\core\request.js:54:28) at async FbsearchRepository.suggestedSearches (C:\Users\Efe\Desktop\insta\node_modules\instagram-private-api\dist\repositories\fbsearch.repository.js:7:26)

Node.js v17.3.0

kingbotss commented 2 years ago

1580

apoorvcodes commented 1 week ago

when will this be merged?