ECONNREFUSED error making HTTP request

This topic was automatically generated from Slack. You can find the original thread here.

ABI Web Developer : Hi, Having a bit of trouble with this workflow trying to retrieve data from the Woocommerce REST API (https://pipedream.com/@ABI-Web-Dev/get-au-woo-products-p_ezCAAPb/edit?e=1l8DS1xbGPAXal3lI8MnVzYxpPd)

Keep getting a connection refused error

> { [ at TCPConnectWrap.afterConnect (net.js:1107:14)
> ]
> errno: ‘ECONNREFUSED’,
> code: ‘ECONNREFUSED’,
> syscall: ‘connect’,
> address: ‘127.0.0.1’,
> port: 80,
> . . .

ABI Web Developer : Any help much appreciated, thanks.

Dylan Sather (Pipedream) : can you edit the woocommerce step and add this at the top?

console.log(auths.woocommerce.url)

Dylan Sather (Pipedream) : can you see if that logs anything in the logs below the step? The error suggests the step is trying to connect to 127.0.0.1 - the local machine that the workflow runs on - instead of the actual URL configured in your WooCommerce linked auth. And this usually means the URL is missing / blank

Dylan Sather (Pipedream) : you can try connecting a new WooCommerce linked account, and adding the URL again, to see if that works

ABI Web Developer : Thanks , will give that a go and get back to you.

ABI Web Developer : Ok thanks Was the URL I had in there, did not contain the https:// part.
Appreciate the help :thumbsup: