
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
- Appwrite Cloud + Firebase hosting login ...
Hey team, can you please add the following to the CORS allowlist for my cloud project? Project ID: 68633b67002faf66fbcf Domains to allow: - https://taggit-...
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Origin error after changing default port...
Hi! I need some help regarding an issue I’m facing with Appwrite after changing the default ports. I have a self-hosted Appwrite instance running on my VPS. I ...
