
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
- [HELP]WebSocket connection to 'wss://clo...
- send custom message to anonymous users
Hello AppWriters, hoping you're all well, I'd like to ask the following: If I have a landing page that doesn't require authentication, is it possible to configu...
- I would like to know if appwrite impleme...
I would like to know if appwrite implements RLS or similar effects? My requirement is to allow users to create tasks. It's simple. But I want them to only creat...
