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
- Bulk delete failed with 401
- I created a transaction to bulk delete rows in a table has `done` equal `true` follow documentation. But when run, it returns 401 unauthorized error as screen...
- Function permissions
In my app I have a CreateUser flow which makes several documents and at the end uses the functions.createExecution() to call a server-side function to create a ...
- Google Auth not working in a React App
Authentication with Google has failed. It redirects back to the signin route in React. Attached screenshots for configuration of Google console and Appwrite Go...