I have tried res.json();
as well still it could not recognize the json
with res.json()
Try making the first line
module.exports = async function ({req, res}) {
yep that worked thanks a lot
[SOLVED] Appwrite function not accepting res.empty() as response
also @ideclon how to show a log in cloud function if I wish to
Add log
to the list of arguments passed into the function, and then you can use log()
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...