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
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...