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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...