addon-node-red icon indicating copy to clipboard operation
addon-node-red copied to clipboard

RequestError: connect ECONNREFUSED on HTTPs Endpoint

Open Barrow1990 opened this issue 1 year ago • 3 comments

Problem/Motivation

Trying to complete a HTTPs API endpoint (https://api.octopus.energy/v1/products/)

Expected behavior

To pull in a json object hosted at https://api.octopus.energy/v1/products/

Actual behavior

Error From Node: RequestError: connect ECONNREFUSED 127.0.0.1:443

Error Outputted from node: {"_msgid":"753da48dc9aac9c4","payload":"RequestError: connect ECONNREFUSED 127.0.0.1:443 : https://api.octopus.energy/v1/products/","topic":"","statusCode":"ECONNREFUSED"}

Steps to reproduce

On Home Assistant Supervisor Install Node Red Add On Add the Following Nodes: [{"id":"eb279dade5872de3","type":"inject","z":"6621fa84f1eddc16","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":420,"wires":[["3ef69765e5707a40"]]},{"id":"bc3bb33cbf35ea0d","type":"debug","z":"6621fa84f1eddc16","name":"debug 15","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":480,"y":420,"wires":[]},{"id":"3ef69765e5707a40","type":"http request","z":"6621fa84f1eddc16","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://api.octopus.energy/v1/products/","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":310,"y":420,"wires":[["bc3bb33cbf35ea0d"]]}]

Note:

Installed via Node Red Docker-compose and works fine with the above workflow

Proposed changes

Unknown

(If you have a proposed change, workaround or fix, describe the rationale behind it)

Barrow1990 avatar Jan 20 '24 21:01 Barrow1990

Also to add both the Home Assistant and Node Red docker-compose are on x86_64

Barrow1990 avatar Jan 21 '24 11:01 Barrow1990

Me too trying to access https://crt.sh/

Moved the flow off this NR instance and it worked fine.

Standard HAOS install on a Blue with the addon.

borpin avatar Feb 02 '24 08:02 borpin

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

github-actions[bot] avatar Mar 04 '24 09:03 github-actions[bot]

i have the same problem what to do?

dfares1987 avatar Mar 07 '24 20:03 dfares1987

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

github-actions[bot] avatar Apr 07 '24 08:04 github-actions[bot]