StephenS
BuildShip13mo ago
15 replies
Stephen

Unexpected end of JSON input in Branch

I am calling an GET and have it set to await.
The response is good
In the branch I check for a status of 200 and the count property being greater than 0

This isn't difficult but why does it seem to be so ...

In the node AFTER the branch I have this code to reformat the response JSON if there is any

JSON.stringify((ctx?.["root"]?.["d633570b-daeb-4624-adfe-a7064113c628"]?.data?.response?.facets || []).map(facet => ({ facetId: facet.id, facetName: facet.name })))

Is there a quicker way to get support as a paid customer ?
Was this page helpful?