PfisterDaniel / node-red-contrib-apple-find-me

Node to get the current locations and other metrics of connected Apple devices.
MIT License
23 stars 5 forks source link

TypeError: Cannot read property 'format' of undefined #11

Closed DaveDaveDaveDave closed 3 years ago

DaveDaveDaveDave commented 3 years ago

The following fault occurred after a number of days of successful use of the node.

The error occurs now each time node-red loads. Removal of the node rectifies the issue and allows node-red to load. No node configuration changed from working to non-working.

19 Mar 22:16:28 - TypeError: Cannot read property 'format' of undefined
    at C:\Users\NODE\.node-red\node_modules\node-red-contrib-apple-find-me\nodes\apple-find-me.js:379:130
    at Array.forEach (<anonymous>)
    at C:\Users\NODE\.node-red\node_modules\node-red-contrib-apple-find-me\nodes\apple-find-me.js:356:46
    at done (C:\Users\NODE\.node-red\node_modules\urllib\lib\urllib.js:617:5)
    at C:\Users\NODE\.node-red\node_modules\urllib\lib\urllib.js:911:9
    at decodeContent (C:\Users\NODE\.node-red\node_modules\urllib\lib\urllib.js:699:14)
    at handleResponseCloseAndEnd (C:\Users\NODE\.node-red\node_modules\urllib\lib\urllib.js:876:7)
    at IncomingMessage.<anonymous> (C:\Users\NODE\.node-red\node_modules\urllib\lib\urllib.js:920:7)
    at IncomingMessage.emit (node:events:390:22)
    at endReadableNT (node:internal/streams/readable:1307:12)

Thanks!

PfisterDaniel commented 3 years ago

I cannot reproduce. Can you say me your used Timezone and Time-Format?

If you have installed the new version, you could also try to recreate the account node.

Br Daniel

DaveDaveDaveDave commented 3 years ago

I deleted the account node and recreated, setting the timezone to local and leaving the Time-Format as the default. Now everything is working!

I should have tried this earlier. Thanks!