Back

Function async issue

  • 1
  • Android
  • Functions
  • Cloud
be4st
29 Jul, 2024, 17:24

on client side i execute the function like this

TypeScript
functions.createExecution(
  BuildConfig.APPWRITE_GEN_FN,
  jsonData,
  true,
  "/path",
  ExecutionMethod.POST,
)

but when i check the console the function is still processing.. and when i try to execute the function which might take more than 30secs i dont see any results in database (i.e i store data in database when function executes successfully)

is this expected? or am i missing something? please help as most of the work on function takes more 30sec and i dont get what i am expecting.

TL;DR
Developers are experiencing issue with async function execution taking longer than expected and not storing data in database. Make sure the function is not exceeding 30 seconds. Check your function code and console errors.
D5
29 Jul, 2024, 17:58

What's the code?

D5
29 Jul, 2024, 17:59

And the runtime you're using?

D5
29 Jul, 2024, 17:59

Do you get some error/s in the console?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more