# How to solve HTTP - Request error - ERR\_GOT\_REQUEST\_ERROR

**URL:** <https://discourse.nodered.org/t/how-to-solve-http-request-error-err-got-request-error/73428>\
**Category:** General\
**Created:** [9 January 2023 20:15 UTC](https://discourse.nodered.org/t/how-to-solve-http-request-error-err-got-request-error/73428 "2023-01-09T20:15:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdacruz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cdacruz/32/29482_2.png) [@cdacruz](https://discourse.nodered.org/u/cdacruz)\
**Post date:** [9 January 2023 20:15 UTC](https://discourse.nodered.org/t/how-to-solve-http-request-error-err-got-request-error/73428/1 "2023-01-09T20:15:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 January 2023 20:28 UTC](https://discourse.nodered.org/t/how-to-solve-http-request-error-err-got-request-error/73428/2 "2023-01-09T20:28:50Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![cdacruz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cdacruz/32/29482_2.png) [@cdacruz](https://discourse.nodered.org/u/cdacruz)\
**Post date:** [10 January 2023 04:43 UTC](https://discourse.nodered.org/t/how-to-solve-http-request-error-err-got-request-error/73428/3 "2023-01-10T04:43:06Z")

</div>

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

```auto
[
    {
        "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": []
    }
]

```

 ![Capture NR Error.PNG](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/0/005d82256ef5ebb38d0d872c525209b075ce313a.jpeg)

---

<div class="post-metadata">

**Author:** ![cdacruz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cdacruz/32/29482_2.png) [@cdacruz](https://discourse.nodered.org/u/cdacruz)\
**Post date:** [10 January 2023 04:59 UTC](https://discourse.nodered.org/t/how-to-solve-http-request-error-err-got-request-error/73428/4 "2023-01-10T04:59:45Z")

</div>

OK,

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

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 January 2023 05:00 UTC](https://discourse.nodered.org/t/how-to-solve-http-request-error-err-got-request-error/73428/5 "2023-01-24T05:00:40Z")

</div>

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