
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
- No mails from Appwrite
Hello, Since severals days, i have a problem : i d'ont received any mails from Appwrite. I'm using the auth by mail and i don't any code so any mails from App...
- dart function very slow
sometimes waiting too long, about 3mins to 5mins, sometimes very fast, not build time, just execute, anyway to speed up?
- wrong code for google oauth2 ?
gives User (role: guests) missing scope (account) error
