I am writing a validation cloud function that performs multiple checks in sequence and when a check fails it writes error to DB and exits.
I exit using : return context.res
However for some reason function continues after the return statement and executes the remaining function.
I am using Dart 3.0. Can someone please confirm what's the correct way to ensure function execution stops.
Thanks
It's not Appwrite specific. A return statement ends the execution of a function 🧐
I know.. Felt dumb just asking the question. Let me redo the function, its quite big so also often runs into the "curl internal error fails" .. Will update once I know more.
[Closed] Stopping a cloud function
Recommended threads
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.
- Clean install of 1.9.0 shows errors in a...
I just run a full clean install of Appwrite on my server following the Manual installation guide in the docs page. The console seems to work, visually there d...
- Setup custom domain on selfhosted behind...
Hello everyone, can anyone help me to setup a custom domain on a selfhosted appwrite instance thats running behind cloudflare tunnels? Current setup: Appwrite r...