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

API Error when using a proxy

Open dm-sizov opened this issue 2 years ago • 10 comments

Bug Report

Form

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.13.2
  • [ ] I'm using electron

Description

When using any type of proxy and making any kind of request, the following occurs: IgNetworkError: Instagram API error was made. Unfortunately, I have little data on this error, although it is DEBUG.

Error

IgNetworkError: Instagram API error was made.
    at Request.faultTolerantRequest (.../node_modules/instagram-private-api/dist/core/request.js:133:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Request.send (.../node_modules/instagram-private-api/dist/core/request.js:48:26)
    at async UserStoryFeed.request (.../node_modules/instagram-private-api/dist/feeds/user-story.feed.js:14:26)
    at async UserStoryFeed.items (.../node_modules/instagram-private-api/dist/feeds/user-story.feed.js:7:26)

dm-sizov avatar Mar 13 '22 17:03 dm-sizov

Check proxy, or give correct format.

kingbotss avatar Mar 15 '22 01:03 kingbotss

Check proxy, or give correct format.

Proxy works through other services, format set as in the example.

dm-sizov avatar Mar 15 '22 10:03 dm-sizov

Get the same problem today, call this error:

IgNetworkError: Instagram API error was made.

I tried different Proxy IPs but it does not work. and I tried http and socks5 all failed now... please Help!

Shadowlong avatar Mar 22 '22 09:03 Shadowlong

Same problem. Proxy is working normaly

ndkedrov avatar Mar 27 '22 09:03 ndkedrov

Same problem

hailovigor avatar Mar 28 '22 20:03 hailovigor

Check response code, it seems it giving 500> status code on Instagram. Or Instagram blocking IP.

kingbotss avatar May 01 '22 14:05 kingbotss

Same error here.

IgNetworkError: Instagram API error was made.
    at Request.faultTolerantRequest (/root/instanote/node_modules/instagram-private-api/src/core/request.ts:179:13)
    at async Request.send (/root/instanote/node_modules/instagram-private-api/src/core/request.ts:77:22)
IgNetworkError: Instagram API error was made.
    at Request.faultTolerantRequest (/root/instanote/node_modules/instagram-private-api/src/core/request.ts:179:13)
    at async Request.send (/root/instanote/node_modules/instagram-private-api/src/core/request.ts:77:22)

kostyakoz avatar Aug 12 '22 11:08 kostyakoz

It is proxy error.

kingbotss avatar Aug 12 '22 14:08 kingbotss

@kingbotss I've tried proxies from different providers, and got the same error. And these proxies work perfectly fine with other libraries which logs in to Instagram, so Instagram doesn't ban their IPs.

kostyakoz avatar Aug 13 '22 08:08 kostyakoz

share me details (privately). I will check.

kingbotss avatar Aug 13 '22 08:08 kingbotss