{"id":256,"date":"2025-03-19T15:07:12","date_gmt":"2025-03-19T16:07:12","guid":{"rendered":"http:\/\/gogetmuscle.com\/?p=256"},"modified":"2025-03-19T17:38:47","modified_gmt":"2025-03-19T17:38:47","slug":"intermittent-error-invalid-json-input-a-request-body-was-expected-but-none-found","status":"publish","type":"post","link":"http:\/\/gogetmuscle.com\/index.php\/2025\/03\/19\/intermittent-error-invalid-json-input-a-request-body-was-expected-but-none-found\/","title":{"rendered":"Intermittent error: “Invalid JSON input: a request body was expected, but none found”"},"content":{"rendered":"
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\u00a0Content-Type<\/EM> and\u00a0Content-Length<\/EM> header.<\/SPAN><\/P> \u00a0<\/P> The error does not seem to be contained to any one endpoint. We’ve seen the error on:<\/SPAN><\/P> POST https:\/\/api.hubapi.com\/crm\/v3\/objects\/:customObjectId:\/search\u00a0
\n
\n
\n
<\/SPAN><\/P>
\n