# Node-red-contrib-volkswagen-we error login

**URL:** <https://discourse.nodered.org/t/node-red-contrib-volkswagen-we-error-login/55948>\
**Category:** General\
**Created:** [1 January 2022 07:02 UTC](https://discourse.nodered.org/t/node-red-contrib-volkswagen-we-error-login/55948 "2022-01-01T07:02:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_F](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@Ben\_F](https://discourse.nodered.org/u/Ben_F)\
**Post date:** [1 January 2022 07:02 UTC](https://discourse.nodered.org/t/node-red-contrib-volkswagen-we-error-login/55948/1 "2022-01-01T07:02:29Z")

</div>

Hallo und ein frohes Neues an dieser Stelle,

bekomme immer den Fehler - "TypeError: Cannot read property '1' of null" beim Login Versuch. Habe mir das How-to durchgelesen, das Beispiel aus der Palette importiert und meine Benutzerdaten eingetragen.  
Habe aber keinen Plan wo ich die Daten für msg.vw\_base\_url, msg.headers, msg.cookies und msg.we\_connect eintragen muss. Brauche dringend Hilfe.

Besten Dank

```auto
[
    {
        "id": "82174ad8.207938",
        "type": "tab",
        "label": "sample flow",
        "disabled": false,
        "info": ""
    },
    {
        "id": "62a8f1c0.dcbcc",
        "type": "we-connect-login",
        "z": "82174ad8.207938",
        "name": "VW We Login",
        "rejectUnauthorized": false,
        "x": 180,
        "y": 360,
        "wires": [
            [
                "a47d7ada.a2eed8",
                "835c5a86.a447d8"
            ]
        ]
    },
    {
        "id": "a2e71954.ae6338",
        "type": "http request",
        "z": "82174ad8.207938",
        "name": "/-/emanager/get-emanager",
        "method": "POST",
        "ret": "txt",
        "paytoqs": false,
        "url": "",
        "tls": "",
        "proxy": "",
        "authType": "",
        "x": 640,
        "y": 400,
        "wires": [
            [
                "668c248f.08631c"
            ]
        ]
    },
    {
        "id": "835c5a86.a447d8",
        "type": "function",
        "z": "82174ad8.207938",
        "name": "prepare request",
        "func": "msg.url = msg.we_connect.url + '/-/emanager/get-emanager';\nmsg.rejectUnauthorized = false;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 400,
        "y": 400,
        "wires": [
            [
                "a2e71954.ae6338"
            ]
        ]
    },
    {
        "id": "668c248f.08631c",
        "type": "json",
        "z": "82174ad8.207938",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 850,
        "y": 400,
        "wires": [
            [
                "fee3725f.a8961"
            ]
        ]
    },
    {
        "id": "ce622347.6483",
        "type": "http request",
        "z": "82174ad8.207938",
        "name": "/-/cf/get-location",
        "method": "POST",
        "ret": "txt",
        "paytoqs": false,
        "url": "",
        "tls": "",
        "proxy": "",
        "authType": "",
        "x": 610,
        "y": 320,
        "wires": [
            [
                "beb729a9.91d2f8"
            ]
        ]
    },
    {
        "id": "a47d7ada.a2eed8",
        "type": "function",
        "z": "82174ad8.207938",
        "name": "prepare request",
        "func": "msg.url = msg.we_connect.url + '/-/cf/get-location';\nmsg.rejectUnauthorized = false;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 400,
        "y": 320,
        "wires": [
            [
                "ce622347.6483"
            ]
        ]
    },
    {
        "id": "beb729a9.91d2f8",
        "type": "json",
        "z": "82174ad8.207938",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 850,
        "y": 320,
        "wires": [
            [
                "fee3725f.a8961"
            ]
        ]
    },
    {
        "id": "3ec9518e.1584fe",
        "type": "inject",
        "z": "82174ad8.207938",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 130,
        "y": 260,
        "wires": [
            [
                "62a8f1c0.dcbcc"
            ]
        ]
    },
    {
        "id": "fee3725f.a8961",
        "type": "debug",
        "z": "82174ad8.207938",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1030,
        "y": 360,
        "wires": []
    }
]

```

---

<div class="post-metadata">

**Author:** ![Ben\_F](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@Ben\_F](https://discourse.nodered.org/u/Ben_F)\
**Post date:** [7 January 2022 18:32 UTC](https://discourse.nodered.org/t/node-red-contrib-volkswagen-we-error-login/55948/2 "2022-01-07T18:32:28Z")

</div>

Hello and happy new at this point,

I always get the error - "TypeError: Cannot read property '1' of null" when trying to login. I read through the how-to, imported the example from the palette and entered my user data.  
But I don't have a plan where I have to enter the data for msg.vw\_base\_url, msg.headers, msg.cookies and msg.we\_connect. I need help urgently.

Thank you very much

Code above

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [7 January 2022 21:29 UTC](https://discourse.nodered.org/t/node-red-contrib-volkswagen-we-error-login/55948/3 "2022-01-07T21:29:31Z")

</div>

Someone reported this to the author back in July 2021 see [Can't login · Issue #5 · iceglow/node-red-contrib-volkswagen-we · GitHub](https://github.com/iceglow/node-red-contrib-volkswagen-we/issues/5)

One of the posters said:

> This issue is since VW changed the webinterface. I don't know if it is fixable.

so you may be stuck but I would encourage you to post that you also have the issue.

---

<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:** [8 March 2022 21:30 UTC](https://discourse.nodered.org/t/node-red-contrib-volkswagen-we-error-login/55948/4 "2022-03-08T21:30:12Z")

</div>

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