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
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...