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
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here π I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...