instagram-private-api
instagram-private-api copied to clipboard
Error showing up everytime a application starts
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)
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.
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
#1580