
Hi support, I have a project running on Appwrite cloud.
I have a web page using client SDK to create two execution (executionA
and executionB
) on the same function with different parameters at the same time when the web page is onLoaded.
One of the request will always fail with 500 error and get the response {message: "Server Error", code: 500, type: "general_unknown", version: "0.10.44"}
, another request will always succeed with 201 status code.
Sometimes executionA
failed and sometimes executionB
failed, the failure does not always happen on the same execution.
When I go to check the Appwrite cloud console's function execution log, there is only one execution log and cannot find the 500 error one in the list.
Does anyone know what is causing this?

What's your function code?

And what runtime are you using?

Also what's your project ID?

@D5
Runtime: node-16.0
Project ID: 642bf770eaeda2f0abc0
Do you mean the source code of the function?

I think you're running into a rate limit problem. We have improvements coming to rate limits soon.
For now, can you add a slight delay between the two?

Ok, I will try to add delay and see if it works.

Thanks for the help, adding delay works and the 500 error is not showing.

how much of a delay did you add?

About 50ms delay

I have faced the same issue. please keep updated the after you us ill improve the rate limit.

If you just add a delay, it should be fine
Recommended threads
- Why "You’ve reached the limit for your G...
Why did Appwrite send me this alert when the usage reached 10605%? Is it too late? Why not when reached 100% usage? And I can not pay for more usage described ...
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
