
I don't understand why is the meaning of this error
In my Appwrite function, when i execute it, i get this error in my try/catch request cannot have request body any idea of the root cause ?
TypeScript
log(`I get this: ${payload.tournamentId}`); // show the expected id
const tournament = await databases.getDocument(
process.env.APPWRITE_DATABASE_ID, // < it's setup in the settings sections
"tournaments",
payload.tournamentId // < it's exist in my collection "tournaments"
);
// 🔥 Crash here "responseBody": "{\"success\":false,\"message\":\"request cannot have request body\"}",
log(`I didn't get this: ${tournament}`);
I'm using appwrite cloud
TL;DR
Error message "request cannot have request body" is triggered when calling the `getDocument` function in Appwrite. This might be due to incorrect parameter types or mismatch in the Appwrite setup configurations. Double-check the function call parameters and Appwrite settings to resolve the error.Recommended threads
- reoccurring resource limit usage
Two days ago I had of the error (attached) when there’s virtually no usage this month for any of my appwrite apps Yesterday we cleared up and I wasn’t getting...
- Functions in Golang - I need help
Hi guys! I am struggling to deploy a rather simple golang function. The deployment log details are very sparse: "failed error code: 524 " or: "Cannot access ...
- Unable to upgrade to PRO plan
After entering card details and attempting to change the tariff plan, the following error appears: The provided mandate has a different payment method than the...
