How to solve HTTP - Request error - ERR_GOT_REQUEST_ERROR

Hi everyone,

I am facing a issue with a http simple request.
Doing a request to external websites it works perfectly but doing the same request internally i got a RequestError: Bad response: 503, statusCode: "ERR_GOT_REQUEST_ERROR". The same internal request works perfectly in the browser...

This works before, but after a global update of nodejs, and node-red... I'am now on node 18.13, node-red 3.0.2, it doesn't work anymore...

I spend all day searching for a solution throw the forum, and internet about a solution, nodejs request but nothing works... I clear cookies, flush DNS, configure proxy...

Does anyone is facing the same thing, have an idea ?

Thanks a lot.

.Christian

can you share more info?

  • What do you see in node-red error log?
  • Can you add a catch node linked to a debug node (debug set to show complete message)
  • Does this happen on a system running Node-RED 3.0.2 + nodejs v16 LTS?
  • Can export and share a minimal flow?

I'm using Node-RED 3.0.2 + nodejs v 18.13

[
    {
        "id": "e59bf086a23fb8ba",
        "type": "tab",
        "label": "Flow 3",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "36583859466cde25",
        "type": "inject",
        "z": "e59bf086a23fb8ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 900,
        "y": 180,
        "wires": [
            [
                "0d8ecbe30e4d1be0"
            ]
        ]
    },
    {
        "id": "0d8ecbe30e4d1be0",
        "type": "http request",
        "z": "e59bf086a23fb8ba",
        "name": "Request google",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://www.google.com",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 1080,
        "y": 180,
        "wires": [
            [
                "a2c1381f9557063f"
            ]
        ]
    },
    {
        "id": "a2c1381f9557063f",
        "type": "debug",
        "z": "e59bf086a23fb8ba",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1260,
        "y": 180,
        "wires": []
    },
    {
        "id": "4b9586e4500d7869",
        "type": "inject",
        "z": "e59bf086a23fb8ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 900,
        "y": 220,
        "wires": [
            [
                "0d6da1e45fc2ed16"
            ]
        ]
    },
    {
        "id": "0d6da1e45fc2ed16",
        "type": "http request",
        "z": "e59bf086a23fb8ba",
        "name": "Local request",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "vmprdpnlvzvcp01:8177/dataelements",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 1080,
        "y": 220,
        "wires": [
            [
                "69927ecbcd754145"
            ]
        ]
    },
    {
        "id": "69927ecbcd754145",
        "type": "debug",
        "z": "e59bf086a23fb8ba",
        "name": "debug 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1260,
        "y": 220,
        "wires": []
    },
    {
        "id": "d5b47bf1c3e90660",
        "type": "catch",
        "z": "e59bf086a23fb8ba",
        "name": "",
        "scope": null,
        "uncaught": false,
        "x": 940,
        "y": 360,
        "wires": [
            [
                "7953781a1fe651d6"
            ]
        ]
    },
    {
        "id": "7953781a1fe651d6",
        "type": "debug",
        "z": "e59bf086a23fb8ba",
        "name": "debug 11",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1200,
        "y": 360,
        "wires": []
    }
]

OK,

I solve it removing the HTTP_PROXY params from the Environnement. Variables, then uninstall and reinstall NodeJs.

Thanks for your help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.