This is alarming. Creating executions by holding down "Enter" key will continually create executions. Whereby the first 5 or so goes through but then Appwrite freezes entirely and nothing works.
It does resolve itself after 5 minutes, but in that time nothing works. The console is unavailable as are the SDKs.
It actually doesnt resolve itself. It freezes after executing a function again.
This input, will send executions to the functions.createExecution SDK.
Then after creating the execution I get this:
Any way I can debug this for you guys?
Also sometimes I get this:
Operation timed out after 30002 milliseconds with 0 bytes received with status code 0\nError Code: 0
Perhaps because the async option was set to false?
but then how can one await the result?
Previous code:
const result = await functions.createExecution(
"functionId", // Function ID
JSON.stringify(executionData)
);
New code but dont know how to await the result?:
const result = await functions.createExecution(
"functionId", // Function ID
JSON.stringify(executionData),
true
);
So yeah... it needs to by synchronous.
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...