owntracks / recorder

Store and access data published by OwnTracks apps
Other
875 stars 122 forks source link

Cannot view 12h points or 12h track #438

Closed comminutus closed 8 months ago

comminutus commented 8 months ago

Hello, when I load the OwnTracks Recorder UI and click on a user's 12h points or 12h tracks, the UI shows a map of the world and this appears in the javascript console within the browser:

Map.js:302 Uncaught (in promise) Error: Bounds are not valid.
    at i.fitBounds (Map.js:302:44)
    at initialize (map_leaflet.js:66:7)

I am using v0.9.5 .

jpmens commented 8 months ago

Is this for a user who has no data? Can you verify the content of the specific .rec file for this user whether there would have been data for the 12h points/tracks?

ckrey commented 8 months ago

@comminutus If there is no data (in the last 12 hours), this is what recorder shows (empty world map and the JS error). Without consulting the .rec file, you can check for the latest data in the "Table of current locations"

Bildschirmfoto 2024-01-17 um 09 54 07
ckrey commented 8 months ago

Will display a tooltip rather than throwing an error in the future:

Bildschirmfoto 2024-01-17 um 11 33 49
comminutus commented 8 months ago

@ckrey there is definitely data in the 12h period. The data was available within a few hours of me looking. The data also appeared fine on the other windows, just not the 12H one.

ckrey commented 8 months ago

If so, consult the .rec file, and check for the latest data in the "Table of current locations". In addition show us the URL. it should contain a “from” and a “to” element

comminutus commented 8 months ago

Thanks @ckrey, everything seems to be working as expected now. I'm not sure if it was truly a bug or I need better glasses to look at the date/times on my screen 😵😜