Hello everyone!
I know this is an old question that many of you have already asked, but I'm doing it again because I can't understand the real solution or implementation here.
I have a React Native app that calls a function like this: const execution = await functions.createExecution with async set to false, but sometimes the response takes a little longer to return, which causes the common error:
Error Code: 408```
My question is: How can I avoid this by using async = true and still receive an answer?
Snippet:
const result = await functions.createExecution( functionId, JSON.stringify({ audioFileId: file.$id, userId: user.$id, language }) );
router.push(/story/${storyResult.story.$id});
When I use async = true, I’m not able to get the actual payload as expected, just the current list of items / executions:
Eg:
LOG {"$createdAt": "2025-08-21T11:18:57.363+00:00", "$id": "68a700a158b4e2ba1616", "$permissions": ["read(user:68480f502aea6ab49a9c)"], "$updatedAt": "2025-08-21T11:18:57.363+00:00", "duration": 0, "errors": "", "functionId": "678cf1c9003678a4e781", "logs": "", "requestHeaders": [], "requestMethod": "POST", "requestPath": "/", "responseBody": "", "responseHeaders": [], "responseStatusCode": 0, "scheduledAt": null, "status": "waiting", "trigger": "http"} ```
Recommended threads
- Many2Many loading, not receiving list
Hi everyone! Im having a bit of trouble while editing single rows in the DB. When selecting a value of my many2many it keeps loading, see screenshot. On some ...
- Creating a function on appwrite Cloud.
I am trying to create a function on Appwrite cloud. I go to the console. I hit : Create function I choose DART-3.5 I put a name for my function : NameFunction...
- SSR Auth with Tanstack Start requires ha...
I followed the Next.js guide for SSR Auth on https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 I tried to replicate it for Tanstack Start. However, on...