Every template function (starter, urlShortener, …) breaks, as soon as some Appwrite method gets called inside its code.
As long as no appwrite method gets called like createDocument or so, everything is fine and I can return res.json(), res.send()…whatever I want and with ever status I want, it just works.
But as soon as I want to call for example await createDocument() ….—> 500
TL;DR
Developers are experiencing a function failure whenever calling any Appwrite method in their code. The function breaks whenever an Appwrite method like createDocument is used, resulting in a 500 error.