
I'm using a server (nextjs api route) to create a user account using a graphql mutation query (accountCreate); however, because the account is created from the server rather than the actual user system, appwrite believes the same user is attempting to create an account multiple times and throws an error saying "The rate limit for the current endpoint has been exceeded." Please try again after some time ." Despite the fact that I attempted to create the account from a different IP address. its just that i am using next api gateway. It was displaying the same error. can you suggest a solution.

you might need to use an api key and the users api

Can you please elaborate which api key you are reffering to. and if u can point to docs if there any for the same that would be great. I have also attached the screenshot of code snippet i am writing in my proj.


and when I add "X-Appwrite-Key" to the header it gives another
error. { "error": "app.64daf210b8ce242c8fbb@service.cloud.appwrite.io (role: applications) missing scope (public): {response:{errors:[{message:app.64daf210b8ce242c8fbb@service.cloud.appwrite.io (role: applications) missing scope (public),extensions:{category:appwrite},locations:[{line:4,column:5}],path:[accountCreate]}],data:{accountCreate:null},status:200,headers:{}},request:{query:n nmutation {n accountCreate(n userId: unique(),n email: test23@test.com,n password: 1234567890n ) {n _idn _createdAtn _updatedAtn namen registrationn statusn labelsn passwordUpdaten emailn phonen emailVerificationn phoneVerificationn prefs {n datan }n accessedAtn }n}nn ,variables:{}}}" }

you wouldn't be calling the create acocunt api. you would use the create user api.

thanks.. its working..

[SOLVED] Rate limit for server-side code
Recommended threads
- How to reduce DB Reads?
I just noticed that I hit the 500k db reads limit on my very small next js app with the most data being present in one collection having around 50 documents. ...
- Getting issue while migrating from Self ...
i try to migrating my project but when do this error come and dont allow to crate that migration
- Pending upload some file, but not for ot...
When upload this file, always got pending. But when I upload another file, it works. Why?
