SPA-sdk integration throws ECONNREFUSED errors

Hi bloomreach community,

We’ve been trying to get the next version of the SPA-sdk to work (from GitHub - bloomreach/spa-sdk). This is supposed to be a simple example of a headless bloomreach integration for us to build upon. However we keep getting the following error:

(Error: connect ECONNREFUSED
127.0.0.1 (8080)
TCOCInnectWrap.afterConnect [as oncomplete]
node:net(1247:16)

Going to the url manually we receive a JSON with a response however the next application can’t seem to get a response.

Has anyone encountered this before? Any idea what we’re doing wrong? Is there a way to get more detailed errors out of bloomreach?

Thanks in advance.

Hi all,

Quuick followup for people who might be dealing with a similar issue: we resolved ours. The problem was no page were being routed to. Setting up a quick simple page which was included in the outgoing JSON resolved our issue.

So despite getting a connection and receiving a JSON file (without any page data) next gave us an connection refused error.

1 Like

Thanks for updating with a solution.