cmcnicholas
Apr 04, 2024Cirrus
Empty JSON payload blocked
I received a Support ID in which I can see the following error:
"Malformed document. Document is too short : less than 2 bytes"
I can see that there is no JSON in the payload which makes sense. However, for users it is optional to send a body to this end point so it should work anyway even if it is empty.
Weirdly it does seem to work ok on most requests (PATCH calls)
It's just this inconsistency that is concerning. Why does it randomly fail with the error above on occasion?
Is there anything that can be done config wise to eliminate the error above being thrown?
Thanks,