instagram-private-api icon indicating copy to clipboard operation
instagram-private-api copied to clipboard

Error showing up everytime a application starts

Open notsapinho opened this issue 2 years ago • 3 comments

Bug Report

Requirements

  • [x] I've searched the Issues
  • [x] I've read the basic concepts
  • [x] I'm using the latest version
  • [x] I've debugged my code using the DEBUG variable.

Platform

  • [x] I'm using Node.js version v16.6.2 (node -v)
  • [ ] I'm using electron

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)

notsapinho avatar Feb 19 '22 13:02 notsapinho

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

Leito-CPU avatar Feb 19 '22 15:02 Leito-CPU

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

0cto-pus avatar Feb 19 '22 16:02 0cto-pus

#1580

kingbotss avatar Mar 06 '22 03:03 kingbotss