
I was working with my project and when everything is done, I want it to send a response to the client side just like the examples had done
return res.send("done", 200, headers);
but when i do that, it says
Return statement missing. return context.res.empty() if no response is expected.
you can see my code here https://github.com/dev-shammi/Test/blob/main/src%2Fmain.js#L199
I also tried to use throw
instead of return
but it doesn't work as well.
I just want it to send the response from that block of code, I have tried removing separate functions for all my code blocks and merging all into one, but that also didn't work.
Recommended threads
- 401 - Project is not accessible in this ...
This is on the app write console https://screen.aryanwadhera.tech/7YTVhLTf
- functions page returns 500
I am running selfhosted appwrite version 1.6.0 and all of a sudden my functions page stopped working, returning a 500. I don't see anything in the logs that wo...
- Local function throws EACCES error when ...
I am developing an Appwrite function locally. Up until now, the process has been as smooth as butter: I edit my files, save them, and this triggers a rebuild of...
