Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: 'block_eu_user_login_in_old_app' #1878

Open
marvinmouroum opened this issue Apr 14, 2024 · 1 comment
Open

Exception: 'block_eu_user_login_in_old_app' #1878

marvinmouroum opened this issue Apr 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@marvinmouroum
Copy link

Describe the bug
When logging in with with relogin=true, with or without 2fa, exception is returned with the message to update the app to use the app: 'block_eu_user_login_in_old_app'

To Reproduce

try:
  success = cl.login(ig_handle, .ig_password, relogin=True) #, verification_code=code)
  return success
except Exception as e:
  print(e) # Error message: block_eu_user_login_in_old_app

Expected behavior
The login should happen without an exception.

Desktop (please complete the following information):

  • OS: MacOS
  • Python version 3.11
  • instagrapi version 2.1.1

Additional context
When using relogin this message is returned. Without using re-login I later get the needs login error in further calls.

@marvinmouroum marvinmouroum added the bug Something isn't working label Apr 14, 2024
@tajbowness
Copy link
Contributor

Possibly an issue with the user agent

Otherwise use login_by_sessionid

https://github.com/subzeroid/instagrapi/blob/master/docs/usage-guide/best-practices.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants