Heey, i dont seem to be able to return status codes from my dart functions, am I missing something?
return res.json(
{"message": "E-Mail is missing."},
400,
);
I haven't used dart for server-side code, but are you sure you need to return res.json, and not just res.json?
Shouldnt make a difference in dart world
return res.json(
{"message": "E-Mail is missing."},
status: 400,
)
@Ipsoka managed to solve?
YES! It worked
[SOLVED] Cannot return status code from function
Recommended threads
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...
- Provider error when creating a function ...
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...