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 "Login Required" When Setting Account Status to Private After Automated Interactions #1978

Open
hassamrajpoot opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hassamrajpoot
Copy link

Try Instagrapi SaaS with a free trial https://hikerapi.com/p/5GBWznd3

Describe the bug
After performing automated interactions on a user account, I attempt to set its status to private. However, I encounter an exception stating that login is required. Is there a set time interval during which the user's session remains active?

To Reproduce
initiate_order(f"https://www.instagram.com/{new_user_name}/")
time.sleep(2*60)
try:
cl.account_set_private()
except Exception as e:
print(f'setting account status to private failed : {e}')
Traceback
Show your full traceback so that it is clear where exactly the error occurred.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Ubuntu 21.04]
  • Python version [e.g. 3.8.3]
  • instagrapi version [e.g. 1.9.3, not "latest"]
  • moveipy version if used
  • imagemagick version if used

Additional context
Add any other context about the problem here.

@hassamrajpoot hassamrajpoot added the bug Something isn't working label Jul 17, 2024
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

1 participant