![](https://cdn.discordapp.com/avatars/249692671893962762/141886634a3c74652753dae559e012a2.webp)
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
}
}
![](https://cdn.discordapp.com/avatars/249692671893962762/141886634a3c74652753dae559e012a2.webp)
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
- Flutter Google Login not closing
In flutter and Android, using latest version and since a few days ago, the sign in popup from google does not go away after you sign in. It will still be displa...
- Query.notContains('users', blockedUserId...
Anyone knows how can i do that ? > users: string[]; As i know, Appwrite Query does not support `Query.notContains` i mean opposite side of `contains` due to ...
- Fulltext Indexed JSON String not working...
in the image is my JSON column that gets auto updated, I have a list of documents in a database. When I search the word "the", I get no results back. If I searc...
![](/images/bgs/pre-footer.png)