onokje / node-red-contrib-tesla

Node red nodes to control Tesla vehicles and devices
MIT License
20 stars 11 forks source link

Node-red crash after update #53

Open tomganleylee opened 1 year ago

tomganleylee commented 1 year ago

Hi, after using this node for a few months without issue (btw great node). i am having issues since an update and cannot seem to find the issue. Im hoping someone here might be able to help. the error logs show this:

Tesla API: No token found. Getting new token now... Tesla API: doing api call to fetch new access token 13 Aug 22:46:08 - [red] Uncaught Exception: 13 Aug 22:46:08 - [error] TypeError: Cannot read properties of undefined (reading 'charging_state') at /usr/src/node-red/node_modules/@node-red/util/lib/util.js:430:29 at Array.reduce () at getObjectProperty (/usr/src/node-red/node_modules/@node-red/util/lib/util.js:429:18) at getMessageProperty (/usr/src/node-red/node_modules/@node-red/util/lib/util.js:401:12) at Object.evaluateNodeProperty (/usr/src/node-red/node_modules/@node-red/util/lib/util.js:652:22) at /data/node_modules/node-red-contrib-bool-gate/lib/RuleManager.js:109:37 at new Promise () at RuleManager.updateState (/data/node_modules/node-red-contrib-bool-gate/lib/RuleManager.js:106:16) at andGateNode._inputCallback (/data/node_modules/node-red-contrib-bool-gate/nodes/and.js:27:30) at /usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:210:26 13 Aug 22:46:32 - [info]

many thanks in advance