PondiaOriginal post
Web Developer
Hello guys,
I'm using the appwrite cloud.
By executing a GET query on my endpoint: http://aaaaaaaa.appwrite.global/
With the following json body:
{
"hello": "world"
}
And with the following implementation
export default async ({ req, res, log }) => {
log(req.bodyText);
return res.json({ message: "OK" });
};
I'm expecting to see my body in the Logs section of my Executions panel according to the documentation. But here nothing is displayed. Why ?
I also notice that doing log(req) turns into a error 500.
Thanks for help!
Summary
Issue with req data not showing in log for Appwrite cloud functions. GET query on endpoint with JSON body not displaying in Logs section as expected. Error 500 when using log(req). Solution: check console for errors, ensure correct implementation of req.bodyText and log statements.