Back

[SOLVED] Rate Limited For Users

  • 0
  • Web
itsjustintime
8 Dec, 2023, 21:53

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.

TL;DR
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
8 Dec, 2023, 21:57

Is this cloud or self-hosted?

itsjustintime
8 Dec, 2023, 21:57

Cloud

D5
8 Dec, 2023, 21:58

The users are being created from the same device?

D5
8 Dec, 2023, 21:58

Or network?

itsjustintime
8 Dec, 2023, 22:24

same device and network

D5
8 Dec, 2023, 23:00

Then that's expected. The mentioned endpoint is rate limited to 10 request each 60 min per email

D5
8 Dec, 2023, 23:01

To prevent someone from brute forcing it

D5
8 Dec, 2023, 23:54

Adding to this: you can use a local appwrite installation and disable the rate limits there to test everything.

D5
8 Dec, 2023, 23:55

@itsjustintime Do you need further information on this or can I mark this as solved?

itsjustintime
8 Dec, 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
8 Dec, 2023, 23:56

Maybe because they were successful or with a different email?

itsjustintime
8 Dec, 2023, 23:57

always the same email

D5
8 Dec, 2023, 23:57

At least in theory it should work that way πŸ€”

D5
9 Dec, 2023, 00:00

Maybe because there were some failed attempts

D5
9 Dec, 2023, 00:00

Well, in all cases it's working now πŸ˜…

D5
9 Dec, 2023, 00:01

If you need something else don't hesitate to create another post <:appwritepeepo:1156975874852270110>

D5
9 Dec, 2023, 00:01

Have a nice day!

D5
9 Dec, 2023, 00:02

[SOLVED] Rate Limited For Users

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more