# TypeError: Request path contains unescaped characters

**URL:** <https://discourse.nodered.org/t/typeerror-request-path-contains-unescaped-characters/54641>\
**Category:** General\
**Created:** [2 December 2021 17:56 UTC](https://discourse.nodered.org/t/typeerror-request-path-contains-unescaped-characters/54641 "2021-12-02T17:56:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loonhaunt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/loonhaunt/32/34517_2.png) [@Loonhaunt](https://discourse.nodered.org/u/Loonhaunt)\
**Post date:** [2 December 2021 17:56 UTC](https://discourse.nodered.org/t/typeerror-request-path-contains-unescaped-characters/54641/1 "2021-12-02T17:56:36Z")

</div>

Hello,

I had a flow that was running through then this occurred.

```auto
TypeError: Request path contains unescaped characters

```

I have searched for similar issues but have not found anything too similar to this.  
I am assuming that I had a sustained network outage that impacted my openweathermap node?

I have stopped node-red and restarted the same message comes back and my i2c LCD display is stuck. I can not get the the message to stop which is a weakness of mine for being a Noob.  
This is my broken flow:

```auto
[
    {
        "id": "55ac7a6f.5dc07c",
        "type": "tab",
        "label": "Project 24",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "d7e12e53.a06f6",
        "type": "inject",
        "z": "55ac7a6f.5dc07c",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "10",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "Click",
        "payloadType": "str",
        "x": 150,
        "y": 180,
        "wires": [
            [
                "6f7754a7.f6142c"
            ]
        ]
    },
    {
        "id": "fd280da4.456798",
        "type": "LCD20x4-I2C",
        "z": "55ac7a6f.5dc07c",
        "name": "LCD",
        "speed": "3",
        "size": "20x4",
        "address": "0x27",
        "x": 610,
        "y": 180,
        "wires": []
    },
    {
        "id": "3628ad74.330682",
        "type": "function",
        "z": "55ac7a6f.5dc07c",
        "name": "Display",
        "func": "var T = msg.payload.tempc\nvar H = msg.payload.humidity;\nvar Temp = \"Temp= \" +((T*1.8)+32)+\" F\";\nvar Hum = \"Humidity = \" + H + \"%\";\nmsg.payload={msgs:[\n {msg:Temp},\n {msg:Hum}\n]};\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 480,
        "y": 180,
        "wires": [
            [
                "fd280da4.456798"
            ]
        ]
    },
    {
        "id": "6f7754a7.f6142c",
        "type": "openweathermap",
        "z": "55ac7a6f.5dc07c",
        "name": "Temp & Hum",
        "wtype": "current",
        "lon": "",
        "lat": "",
        "city": "DENVER",
        "country": "usa",
        "language": "en",
        "credentials": {},
        "x": 290,
        "y": 180,
        "wires": [
            []
        ]
    }
]

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 December 2021 21:00 UTC](https://discourse.nodered.org/t/typeerror-request-path-contains-unescaped-characters/54641/2 "2021-12-02T21:00:08Z")

</div>

Is that appearing in the debug pane? If so then you should be able to click on the node id above the message and you should be taken to the node generating the error.

---

<div class="post-metadata">

**Author:** ![Loonhaunt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/loonhaunt/32/34517_2.png) [@Loonhaunt](https://discourse.nodered.org/u/Loonhaunt)\
**Post date:** [2 December 2021 21:15 UTC](https://discourse.nodered.org/t/typeerror-request-path-contains-unescaped-characters/54641/3 "2021-12-02T21:15:23Z")

</div>

I know what node is generating the error, I am unable to suss out what is causing it. I deleted the node re-installed and reconfigured it. This was an openweathermap node, and I believe that it had something to do with the node loosing the API key when the monitor went to sleep or I had a momentary loss of internet in the night and the API Key did not come back after that?? Guessing at this point. All is working for now.

Still need to learn if this is the case as it may impact overall plan for this flow if I can't get past this.

Dave

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 December 2021 21:30 UTC](https://discourse.nodered.org/t/typeerror-request-path-contains-unescaped-characters/54641/4 "2021-12-02T21:30:29Z")

</div>

> [@Loonhaunt](#):
>
> This is my broken flow:

Do you mean that you continue to get the error?  
Does it appear each time the inject node triggers?  
Did you realise that there is no output wire on the weathermap node?

By the way, I advise against using an object property called `msg`, it will cause confusion (to people, not to node-red).

---

<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:** [31 January 2022 21:31 UTC](https://discourse.nodered.org/t/typeerror-request-path-contains-unescaped-characters/54641/5 "2022-01-31T21:31:11Z")

</div>

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