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 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 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
Hey @Stephen, looking into this now
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
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.
I must be missing something because I don't see how to expand either of those
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
Not in the POST
Ok, I just sent over an email explaining this issue and fix.
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 ?