I called 2 cloud functions which suppose to send email to user. But It's returning previews functions data. I mean that data is completely changed.
I am using 1.1.2 and dart 2.17 for cloud function
try {
final result = await state.functions.createExecution(
functionId: EnvConfig.instance.appwriteSendEmailFunctionId,
data: data);
print(result.toMap());
print(result.response);
print(result.stderr);
print(result.stdout);
} on Exception catch (e) {
print('error');
print(e);
}
This is how I call my function
Which version of Appwrite Dart SDK are you using?
Make sure you use the version of Dart SDK for 1.1.2
1.1.2 Everything is for 1.1.2 cli and appwrite
So for Dart SDKs: https://github.com/appwrite/sdk-for-dart/releases
You'll probably wanna try 7.1.0?
Functions for 1.1.2 has a different signature compared to 1.4.x
You might need to use an older SDK if you're on Appwrite 1.1.2
Yes sir i using dart_appwrite: ^4.0.2
You might need to update your SDK in that case
So in short, Appwrite functions can be executed synchronously and asynchronously.
- Synchronous executions will return the result immediately
- Asynchronous executions will return the execution summary like what you see.
async is default false in newer SDKs.
https://appwrite.io/docs/references/1.1.x/server-dart/functions#createExecution
Recommended threads
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...