Hey I am new to appwrite , I am trying to fix this issue of empty refresh tokens (#5987) when we call account.updateSession. But I am not able to reproduce this issue as upon calling account.updateSession it give me this error.
No session found ...
Is it because I am calling get session and update session too frequently??
Help would be appreciated, thanks
on what i can see you are in fact asking too much time the sessions
you shouln't have a loop that request appwrite session everytime
you can get the session once, and check the session expiration from the getSession function for example
when you get 429 the server block your requests for a certain time (you can see that in the response headers)
and because you did too much request to the server/endpoint
The accounts.updateSession() endpoint has a rate limit of 10 requests per 60 minutes.
Ah, are you trying to take on the issue?
I see thereβs currently no-one assigned to it
Yeah , I am working on it.
Ok - so for development, on a local version of Appwrite, you can disable the rate limits
How can I disable it?
I cannot stress this enough - do not do this in production
In the .env file, set _APP_OPTIONS_ABUSE=disabled
Ok thanks , i will check it out
Feel free to come back here and ping me if you have any further questions!
Okiee π
Recommended threads
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...
- "Restore project" button fails: "Invalid...
In the dashboard, it clicking "Restore project" fails. The request sent to `PATCH https://cloud.appwrite.io/v1/projects/:project_id` with payload `{status: "act...
- how to access the value of account statu...