
Hi Appwrite Support Team,
I'm encountering a persistent issue where my Appwrite function is receiving an empty req.body, even though my cURL requests successfully send a JSON payload and receive a 201 Created response from the Appwrite API.
I've thoroughly debugged this, confirming that:
My cURL command correctly includes the JSON --data payload and Content-Type: application/json header. The Appwrite API responds with 201 Created, indicating successful receipt of the request and initiation of the function. My function's code explicitly checks typeof req.body (which logs as 'string') and attempts JSON.parse(req.body), but the req.body string itself is always empty within the function's execution environment. I have removed the X-Appwrite-Endpoint header from my requests, which was identified as a potential conflict, but the issue persists. It appears the request body is being lost or stripped between the Appwrite API gateway (which correctly processes the request) and the function's execution environment.
I have the following IDs available to share privately if required for investigation:
Appwrite Cloud Project ID Function ID
Recommended threads
- Error setting postman body
Good evening, anyone has an idea on how to pass body to appwrite function using postman? this is how I've passed it : { "providerName": "adamu" } and I ke...
- Attributes stuck at processing
Added some attributes to my collection, and they are stuck in processing for over half an hour. Project ID: 684d0539002c85ded9c5
- Attributes in "Processing" state
Hey, all the attributes of all my collections are in a "Processing" state. I've read that we need to create a discord ticket with the project ID. Is it normal a...
