Aarush AcharyaOriginal post
Rank 3: Container
I have tried res.json(); as well still it could not recognize the json
Summary
The user was having trouble with an Appwrite function not accepting `res.empty()` as a response. The suggested solution was to add `log` to the list of arguments passed into the function and then use `log()` to show a log in the cloud function. This solution worked for the user. Another suggestion was to change the first line of the code to `module.exports = async function ({req, res})` and use `res.json()` instead of `res.empty()`. The user also mentioned trying `res.json();`, but it did not work as expected.