How can I make the flow ignore parse errors?
I keep getting this at the end of a flow, that posts something using HubSpot. I'm thinking this error is because HubSpot returns `SUCCESS` text instead of JSON after successful request. I'm looking for a way to ignore errors like this from appearing in the error list during runtime. However, I can't find a way to do it.
I tried doing it using postSubmit, but it doesn't even reach there since it can't parse it to a JavaScript Object. Is there a way to solve this?
Message:
An invalid JSON is sent in the response.body, error: please ensure that you have wrapped all JSON property names in quotes. details: Unexpected token S in JSON at position 0
Code: invalid_json
Source: HubSpot
Timestamp: 2022-12-20T21:21:10.858Z
Error ID: 1412159407
Classification : Parse
Trace key : 56851 - 56801
-
Yahya Fati Haji what Hubspot endpoint are you using? Can you sent screenshots of the overall flow setup and that Hubspot import step? I'm wondering if you may be using an older Hubspot api version (v1) instead of v3. If you're on v3, then I have another thought, but could validate it on my side after seeing your overall flow and setup.
0 -
I'm using the Merge Contacts endpoint, which is a v1 API endpoint in HubSpot, and there is no v3 equivalent for that (I couldn't find it if there is).
Here is a screenshot of the flow:
Here is a screenshot of the last (import) step in the flow
0 -
Yahya Fati Haji it looks like there is a v3 version of this endpoint. Will this work for you? https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=POST-/crm/v3/objects/contacts/merge
1 -
Tyler Lamparter Thanks a lot. This solved my problem.
1
Please sign in to leave a comment.
Comments
4 comments