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

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

Error when reading null altitude on device #29

Open rossphillips70 opened 2 years ago

rossphillips70 commented 2 years ago

<Error: TypeError: Cannot read properties of null (reading 'toFixed')>

I am getting this error in the debug messages flyout in node-red. looking at the payload it seems to be happening when apple find me cant retrieve the altitude of the device.

image

TXT from Image: locationInfo: object distances: array[1] altitude: "<Error: TypeError: Cannot read properties of null (reading 'toFixed')>"