
I'm having trouble understanding how to use the async: true
flag in the createExecution function. Do I need to create some sort of queue system? I can't find any examples of how to do this for Cloud + Web (Node.js)
When I try to run the following function multiple times without async: true
It's only running the first one. If I add async: true
I get a server error: Error: Function execution failed with status 0:
try {
const execution = await functions.createExecution(
"6667045d000c65a2ddcb",
id,
true
)
if (
execution.responseStatusCode >= 200 &&
execution.responseStatusCode < 300
) {
return JSON.parse(execution.responseBody)
} else {
throw new Error(
`Function execution failed with status ${execution.responseStatusCode}: ${execution.responseBody}`
)
}
} catch (error) {
console.error("Error fetching payment from server: ", error)
throw error
}
}

After playing around with some polling, I'm now getting an empty responseBody
which might be tied to this issue: https://github.com/appwrite/appwrite/issues/6256
I guess I need to completely rethink they way I'm doing this
Recommended threads
- 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...
- [bug] API response is good but UI don't ...
Hi guys! When i got my object, it have billingInfo relation, in the web ui i just got pading state, and the row shows object is null, but when i work whit this...
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
