
I'm trying to return a custom status code (error 500) when a dart cloud function fails. Using the below doesn't seem to be working. Am I missing something?
res.json(
{"msg": "function failed"},
status: 500,
);

I haven't figured out how to return a failure from a cloud function without throwing an exception, which can cause the cloud function to run until it times out. Ideally, I'd like to figure out how to get the execution to have "failed" programmatically and the response code returned to the client have an HTTP status code of 500.

Next version of Functions will allow you to set a custom status code it will be executed a bit differently, but have full backward support. cc @Meldiron

Thanks Eldad! Really looking forward to the functions update! 馃敟馃殌

The next release of Functions is going to be an industry game changer. This is only a tiny piece of what to expect. 馃

I promised Tanner to share branch as soon as it is working, for QA 馃槑

Very cool!

hello folks, hope you are doing well.
Any idea of when this feature will be released?
I am trying to use QStash to handle retryings in case of any error on a appwrite function, but the api must return a error code. In my case it only returns 201 no matter what happens on the server side.
Recommended threads
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: {聽聽"name":聽"upload-whitelist",聽聽"type"...
- Function running in cloud but not locall...
Hi everyone, I have an appwrite function which is on python3.12 runtime. I have a library (hnswlib) which builds wheels during installation. This works on appwr...
- Permissions for bulk operation
Hi team, I have a question: 鈥淚n the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
