GOGETMUSCLE Community Intermittent error: “Invalid JSON input: a request body was expected, but none found”

Intermittent error: “Invalid JSON input: a request body was expected, but none found”

Hey everyone! We seem to be getting an HTTP status code 400 from HubSpot every so often. The error will state, “Invalid JSON input: a request body was expected, but none found.” However, we’ve checked everything, and we definitely are sending a request body when this happens; we’ve added logging to our calls just to double check, and it does look like we are sending a body, as well as a Content-Type and Content-Length header.



The error does not seem to be contained to any one endpoint. We’ve seen the error on:


POST https://api.hubapi.com/crm/v3/objects/:customObjectId:/search 




and 



I logged the CF-Ray response header for one of the failing requests to the list membership add endpoint. It was 

921ad2b04e4ffeff-PDX for the request on March 17, 2025 at 2:37 AM CDT. Please let me know if there’s any more data I can give you guys.






 

Leave a Reply

Your email address will not be published.

Related Post