When I execute a function marked with xasync it doesn't return the result, is this expected? If yes, then how can I get the result?
Yes
You can get it by running it in sync mode or by getting the execution with the corresponding API endpoint
if you set the xasync parameter into true, it indicates that you want to run your cloud function in background. Hence, you will not get the result, since it runs in the background.
Otherwise, if you set false, it indicates that you are going to wait until the function process is done. It means, it is expected that the function will returns a result.
how to get the response of the execution? There is properties called responseBody in the Execution Model of appwrite.
ok, thanks
[SOLVED] Functions async
Recommended threads
- Function permissions
In my app I have a CreateUser flow which makes several documents and at the end uses the functions.createExecution() to call a server-side function to create a ...
- The file size is either not valid or exc...
Hello, I am receiving the following error when I am trying to deploy a function from my local. ``` > appwrite push functions --function-id xxxxxxxxx ℹ Info: Va...
- How does sending email from the Appwrite...
I noticed that the pricing page mentions “Messages – 1000 per month” for the Free plan. Is this different from sending emails? When I try to send an email usin...