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

How can i avoid 403 - Wait a few minutes... when login again? #238

Open
wemersonrv opened this issue Mar 18, 2021 · 1 comment
Open

How can i avoid 403 - Wait a few minutes... when login again? #238

wemersonrv opened this issue Mar 18, 2021 · 1 comment

Comments

@wemersonrv
Copy link

wemersonrv commented Mar 18, 2021

Hello

I don't understand how the authentication process works, because i have the stored session cookie, but sometimes not works and instagram returns me the error *403 - Please wait a few minutes before you try again.

How can i avoid this problem?

const cookieStore = new FileCookieStore('./session.json')

const client = new Instagram({
   username: 'my-username',
   password: 'mypassword',
   cookieStore,
})

await client.login()
@MonsieurBibo
Copy link

There are plenty of reasons for getting 403 while authenticating. It might be the rate limit or IG detecting "malicious" activities on your account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants