Skip to content
Init is coming / May 19 - 23
Back

[Functions] Bun function with await and async code is not completed, but times out

  • 0
  • Functions
blackfan23
11 May, 2024, 17:47

I have a bun function that should create a user account when the corresponding data is added as a document to the users collection. It is properly triggered and the first couple logs are executed correctly. However, all code that is async is never executed and the functions times out. I am obviously missing something but would appreciate some help

TL;DR
Developers having issue with a bun function timing out before async code completes. Ensure to return a response for the function to execute properly. Check documentation for guidance: <https://appwrite.io/docs/products/functions/develop#response>
Steven
11 May, 2024, 17:51

You're not returning a response

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