Dadams, when we get back an error from HubSpot when we are passing over invalid field values, we typically get a response back that includes the field in question and the value that was bad. However, recently I’ve noticed we have gotten a few errors where the error, while looks similar to these standard invalid field value errors, is not showing any real details. Here’s an example of what it’s looking like:
So it’s just saying Bad Request. My one suspicion was perhaps when there is more then one field causing a problem, we are not properly recognizing the response you are sending and therefore are not including the details. Any chance you can send what an example response might look like from the contacts API when more then 1 field has invalid fields and therefore we can’t write the changes?
In this request, I know that the monthly_credit_card_processing_voluem_estimate value is invalid as well as your_emv_stage as both of these are drop down selects in this customer’s portal and these options do not exist.
Usually when invalid field options are present, the error shows the full details of what field is in question. But as there is more then one, our suspicion is that this shows up differently and we may then need to treat it differently in order to display properly in our logs.
it looks like your provided JSON doesn’t match the format we expect. Our Contacts API takes in an array of property-value objects, so your body should look more like this: