I'm getting the Rate limit for the current endpoint has been exceeded. error in my React app.
It's calling account.createEmailSession(email, password);. I'm making maybe a few requests per minute to test my integration so it doesn't make sense if this is rate limited.
What might be the cause for this? I'm not clear on what the cause is for this and I'm essentially locked out of my dev environment.
Summary
The user is experiencing rate limiting issues when making requests to the `account.createEmailSession()` endpoint in their React app. They are unsure why this is happening since they are only making a few requests per minute for testing purposes. They are looking for the cause of the issue and a solution.
Solution: The endpoint is rate limited to 10 requests every 60 minutes per email. To test everything, they can use a local appwrite installation and disable the rate limits.
D5
Dec 8, 2023, 21:57
Is this cloud or self-hosted?
itsjustintime
Rank 2: Process
Dec 8, 2023, 21:57
Cloud
D5
Dec 8, 2023, 21:58
The users are being created from the same device?
D5
Dec 8, 2023, 21:58
Or network?
itsjustintime
Rank 2: Process
Dec 8, 2023, 22:24
same device and network
D5
Dec 8, 2023, 23:00
Then that's expected. The mentioned endpoint is rate limited to 10 request each 60 min per email
D5
Dec 8, 2023, 23:01
To prevent someone from brute forcing it
D5
Dec 8, 2023, 23:54
Adding to this: you can use a local appwrite installation and disable the rate limits there to test everything.
D5
Dec 8, 2023, 23:55
@itsjustintime Do you need further information on this or can I mark this as solved?
itsjustintime
Rank 2: Process
Dec 8, 2023, 23:56
Thanks you can make it resolved. I’m still a little confused since I’ve been logging in many more than 10 times per hour to test and this just started happening when i posted this.
D5
Dec 8, 2023, 23:56
Maybe because they were successful or with a different email?
itsjustintime
Rank 2: Process
Dec 8, 2023, 23:57
always the same email
D5
Dec 8, 2023, 23:57
At least in theory it should work that way 🤔
D5
Dec 9, 2023, 00:00
Maybe because there were some failed attempts
D5
Dec 9, 2023, 00:00
Well, in all cases it's working now 😅
D5
Dec 9, 2023, 00:01
If you need something else don't hesitate to create another post