if trying to print payload then its giving error else its working fine, An internal curl error has occurred within the executor! Error Msg:
Operation timed out
Please share your code
why payload is not printing ,
//assigning
final payload = !req.payload?.isEmpty ? req.payload : 'No payload provided. Add custom data when executing function.';
//printing
print(payload["hallelujah"]);
and here is custom data or providing payload to appwrite console```{ 'hallelujah':[ { 'image': 'image', 'productName': 'love you jesus ', 'productUnit': 'productUnit', 'barcode': 55558888, 'id': " d5454a", 'sellingPrice': 44.0, 'totalQuantity': 100.0, 'quantity': 1.0 } ]
}```
What doesn't this work?
final payload = "I'm a string";
print(payload["key"]);
yes, this does not work some time , its saying "type '_OneByteString' is not a subtype of type 'int' of 'index'" and if execution is delaying then it just says An internal curl error has occurred within the executor! Error Msg:
Operation timed out
You'll see that operation timed out if your function throws an exception
You need to send a valid JSON string for the data. Single quotes are not valid in JSON.
Then, you need to use jsonDecode() to convert the JSON string to a map
now its working , thanks @Steven
Recommended threads
- TablesDB can't be used in Appwrite Funct...
I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...