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
- Server Down
Appwrite services are down. When will they start working again?
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...
- Looking for a Partner