Stephen
Stephen3w ago

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 ?
10 Replies
AI Support
AI Support3w ago
AI Support Bot Information
<@814925000838086657> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support3w ago
AI Response
As a paid customer, you have access to priority support through the BuildShip in-app support feature. You can use this feature to quickly reach out to the support team for assistance with your specific queries and issues. Simply log in to your BuildShip account and navigate to the support section to submit your request or chat with a support representative.
BuildShip AI Support
Luis
Luis3w ago
Hey @Stephen, looking into this now
Stephen
StephenOP3w ago
ok thanks How do I / what is the best practice to see what the "real" problem is ? I log the output in the response and it's fine ... I mean if the POST is failing that's cool .. but it's reporting the branch is failing so I am confused
Luis
Luis3w ago
I see the confusion. If you just expand the branch node you'll see the "Unexpected end of JSON input" error. You need then expand the "then" to see the issue is stemming from your post to supabase node.
Stephen
StephenOP3w ago
I must be missing something because I don't see how to expand either of those
Stephen
StephenOP3w ago
Like how do I log when a node fails so I can see what the error was .. if I look in the log it fails and reports this
No description
Stephen
StephenOP3w ago
Not in the POST
Luis
Luis3w ago
Ok, I just sent over an email explaining this issue and fix.
Stephen
StephenOP3w ago
Ok will check it out Anyone else I would appreciate any help you can offer ... the solution does not work .. thanks So Luis added code to the "code behind" of the block but I am not sure how to tell that simply looking at the workflow so I missed it ... do I have to click on every block to see the code and if so how do I know what code was added in the editor versus the standard code generated by the block that may be overwrittern ?

Did you find this page helpful?