Open tupizz opened 3 years ago
Have you tried doing a simple request to the server? If not the try this without the library:
import httpClient from 'anyHttpLibrary';
console.log(await httpClient ('https://31.13.85.52/'));
console.log(await httpClient ('https://i.instagram.com'));
This should return the same response. The status should be in the 3xx range as it will redirect to www.instagram.com.
@Nerixyz I will try it then.
So, maybe it could be my connection, or perhaps Instagram is blocking during some seconds the requests from my IP address?
@Nerixyz Using a pool of proxies should solve this problem?
any update on this issue as I am facing the same problem.
Not from me 😢
@tupizz what's the best way of to go about using a pool of proxies?
@Nerixyz the response for the POST request to /api/v1/accounts/get_prefill_candidates/ is (HTML) Instagram.com's login page. This only happens on production server. Local is fine.
@Nerixyz the response for the POST request to /api/v1/accounts/get_prefill_candidates/ is (HTML) Instagram.com's login page. This only happens on production server. Local is fine.
Instagram redirects the user by default to the login page. Not sure why.
@Nerixyz the response for the POST request to /api/v1/accounts/get_prefill_candidates/ is (HTML) Instagram.com's login page. This only happens on production server. Local is fine.
The same (((
I tried to go to Instagram using a browser and my proxy. It was suspiciously for Instagram. I needed an SMS code to enter. This is two-factor authentication and this needed a 302 redirect.
Also, I found this: https://stackoverflow.com/questions/39251999/instagram-app-authentication-without-redirect But this information about the official API.
This pull request https://github.com/dilame/instagram-private-api/pull/1412 solves the problem. Fixes available now in the latest 1.44.1 version.
But I use Androz2091/insta.js. There @Androz2091 using an old version of instagram-private-api.
I could bump the version of my package
same here any fixes!?
afaik no
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
YOUR_VERSION (node -v)
v12.20.0[ ] I'm using electron
[ ] I'm using the browser
YOUR_BROWSER_AND_VERSION
[ ] I'm using some other environment
YOUR_ENV
Description
A specific description of your bug, so it's understandable to anyone. If you have pictures or videos to upload, please add a link like this:
[title](url)
.YOUR DESCRIPTION HERE I am getting a IgNetworkError [RequestError]: Error: connect ETIMEDOUT 31.13.85.52:443 when trying to connect to the Instagram, I already checked my credentials and they are all correct, but I am getting this error, and this is printed when I subscribe to the error observable of request. Does anyone had this problem?
Code
Add a meaningful section of your code here. If you are using TypeScript replace
js
withtypescript
.Error and Output
If you've got an error put it here. You can get the stacktrace in the most environments using
Error.stack
(MDN Docs).