Heyo.
I tried sending a body to a function, but I got:
TypeScript
[AppwriteException: Invalid `body` param: Value must be a valid string and exactly 0 chars]
So am I only allowed to send an empty body? What if I want to send a body?
TL;DR
Issue: Error message stating "Function body must be exactly 0 chars" despite wanting to pass a body to a function. Developer suspects the error is misleading and suggests sending an empty string instead of undefined.
Solution: It seems the error message is misleading. Try sending an empty string as the body instead of undefined if you wish to pass a body to the function.I think the error is wrong...you should be able to send a body
Seems I forgot to stringify the body.. However, yeah, the error is incorrect
I think what it's trying to say is to send an empty body, put in an empty string instead of .. undefined probably
Recommended threads
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- My projects were deleted
Hello everyone, My projects were for some reason deleted. I got an email informing me about project inactivity, when I clicked to activate it again, it was sil...