I have a simple function that logs the body text. The body is some simple JSON which I am including in the POST dialog on the appwrite console for executing the function. The log statements return undefined.
module.exports = async function (context) { try { console.log(context.req.bodyText); console.log(context.req.bodyJson);
} catch (error) {
console.error("Error:", error.message);
}
return {};
};
Can you send a picture of the dialog?
Recommended threads
- Can't Login to Cloud Account
Dear <@870607367597850624> I used one of my Email account (hassanmrwt@gmail.com) for Cloud but that is not in my access now. System is prompting me to verify E...
- 500 Server Error after migrating to 1.8....
Upgraded as per docs and ran migration. Everything went smoothly. I am able to log into the appwrite console however cant access any service i.e., auth, databas...
- Console not showing Site screenshot
Image link broken for self-hosted 1.8.0 (updated from 1.7.4), was working fine in older Console version (6.0.43, updated to 7.4.10).