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
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...