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
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- Appwrite (Dart SDK) (for package_info_pl...
Hi team! Many Flutter plugins now need package_info_plus 10.x and device_info_plus 13.x, but appwrite 25.4.0 still constrains package_info_plus: >=8.0.2 <10.0...
- Functions in cloud console not works
please advise as all of my runing functions on Appwrite console was working before , but now it give this error [Invalid `headers` param: Value must be a valid...