diezo / Ensta

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

User doesn't exist HELP!!!!!!!!!! #57

Closed ak-47-brar closed 9 months ago

ak-47-brar commented 10 months ago

Traceback (most recent call last): File "/workspaces/codespaces-blank/instabot.py", line 4, in host = Host(username, password) File "/home/codespace/.python/current/lib/python3.10/site-packages/ensta/Host.py", line 33, in init self.load_session() File "/home/codespace/.python/current/lib/python3.10/site-packages/ensta/Host.py", line 52, in load_session if not os.path.exists(self.file): return self.new_session() File "/home/codespace/.python/current/lib/python3.10/site-packages/ensta/Host.py", line 65, in new_session session_data: str = new_session_id(self.username, self.password, self.proxy) File "/home/codespace/.python/current/lib/python3.10/site-packages/ensta/Authentication.py", line 71, in new_session_id if response_json.get("status", "") != "ok": raise AuthenticationError("User doesn't exist.") ensta.lib.Exceptions.AuthenticationError: User doesn't exist.

diezo commented 10 months ago

have you tried using your email address instead of username?

ak-47-brar commented 10 months ago

yes already tried but not worked

diezo commented 10 months ago

i'll need more context into this issue. are you on discord? we can discuss it there: https://discord.com/invite/pU4knSwmQe

my username: @notdiezo

ak-47-brar commented 10 months ago

no man not on discord

diezo commented 10 months ago

@ak-47-brar if you had 2fa enabled on your account, that could be the reason.

2FA has now been implemented and you can log into your account as usual.

thanks.

ak-47-brar commented 10 months ago

no 2fa not enabled

diezo commented 10 months ago

try changing your password to a stronger one because weak password throws a checkpoint required error.

ak-47-brar commented 10 months ago

ok I'll try

diezo commented 9 months ago

i looked into this issue and turns out this could be because you're using a flagged IP address, probably deployed your app to cloud. because instagram doesn't allow requests from common cloud providers. possible solutions would be to use quality proxies. if that doesn't work either, then you have to generate session_id on your local machine and use it while initializing SessionHost class in the cloud while using proxies. i've tried webshare.io proxies and it works except for the login endpoint.