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
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...