Back

[SOLVED]How to increase rate limit for JWT End Point?

  • 0
  • Accounts
  • Web
Sandeep K. Dasari
10 Jun, 2023, 13:44

I have met the rate limit and I am unable to perform any operation 😦

TL;DR
The user was initially confused about how to increase the rate limit for a JWT endpoint. They found the documentation helpful but had questions about permissions and roles. They realized that using the `account.get()` method for every page render was causing the rate limit to be reached. They considered using `localStorage` as an alternative solution. Another user suggested caching the response or waiting for 60 minutes before retrying. The user acknowledged the rate limit abuse and expressed their frustration at being unable to perform any operation due to reaching the rate limit. The thread does not provide a clear solution to increase the rate limit.
Bouahaza
10 Jun, 2023, 13:51

You need to wait 60 minutes so

Bouahaza
10 Jun, 2023, 13:51

Why you call it more than 100 times in 60 minutes ?

Bouahaza
10 Jun, 2023, 13:51

If you need to test while dev, just cache response

joeyouss
10 Jun, 2023, 14:23

100 times in 60 mins wow! please check this once https://appwrite.io/docs/rate-limits#abuse

joeyouss
10 Jun, 2023, 14:23

I would urge to wait a bit then retry?

joeyouss
10 Jun, 2023, 14:25
Sandeep K. Dasari
10 Jun, 2023, 15:18
Sandeep K. Dasari
10 Jun, 2023, 15:19

May be this is the reason

Sandeep K. Dasari
10 Jun, 2023, 15:19

I want to check whether user exists or not. and I want to protect routes.. Could anyone suggest me any other best solution?

Sandeep K. Dasari
10 Jun, 2023, 15:20

localStorage is the best alternative this right ?

Sandeep K. Dasari
10 Jun, 2023, 15:20

Ma'am!

Sandeep K. Dasari
10 Jun, 2023, 15:39

I think , I have solved this issue...

Sandeep K. Dasari
10 Jun, 2023, 15:39

🙂

Drake
10 Jun, 2023, 23:46

The way we typically check if a user is authenticated is to call account.get(). If that is successful, the user is logged in.

Sandeep K. Dasari
11 Jun, 2023, 03:58

Yeah, I mean, If I use the above method or any other method, for every page render, that method will be called. Because I am wrapping every page with AuthProtectedRoute Page. that's how my limit is getting over. So I am checking it for one time until the user delete the session and updating the UI through localStorage. sir.

Drake
11 Jun, 2023, 04:18

account.get() does not have a rate limit

Sandeep K. Dasari
11 Jun, 2023, 04:20

I see, I dont know this. Thanks sir. 🙂 Awesome then.

Drake
11 Jun, 2023, 04:21

Every API that has a rate limit will have it mentioned in the docs

Sandeep K. Dasari
11 Jun, 2023, 04:22

Alright! Docs are so helpful. I am literally clearing all my doubts while reading docs. Except permissions and roles.

Sandeep K. Dasari
11 Jun, 2023, 04:54

[SOLVED]How to increase rate limit for JWT End Point?

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