diezo / Ensta

🔥 Fast & Reliable Python Package For Instagram API - 2024
https://bit.ly/ensta-discord
MIT License
377 stars 45 forks source link

Authentication not Working #94

Closed nlkguy closed 8 months ago

nlkguy commented 9 months ago
Traceback (most recent call last):
  File "/home/~~~~~~.py", line 8, in <module>
    profile = host.profile("leomessi")
  File "/home/~~~~/.local/lib/python3.10/site-packages/ensta/SessionHost.py", line 571, in profile
    return self.guest.profile(username, __session__=self.request_session)
  File "/home~~~~/.local/lib/python3.10/site-packages/ensta/Guest.py", line 191, in profile
    raise NetworkError("HTTP Response is not a valid JSON.")
ensta.lib.Exceptions.NetworkError: HTTP Response is not a valid JSON.
diezo commented 9 months ago

@nlkguy are you using ensta on the cloud? if yes, then you need to use good proxies. or maybe just try switching to a different wifi network.

nlkguy commented 9 months ago

sure will do. I think it is the rate limit from Instagram.

The same credentials are not working in any other network/IP . but I tried a different host and it worked.

the problem with the old host resolved when I waited for a few hours

diezo commented 8 months ago

@nlkguy Yes. IG limits the actions on a specific IP address if it finds it suspicious. Make sure you don't use the same IP address for more than 5 accounts.