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