aunefyren / wrapperr

Website based application that summarizes Plex statistics from a given period and displays it in a nice format. Similar to the Spotify Wrapped concept.
314 stars 22 forks source link

Server-Wide Statistics Displays "NaN Seconds" #5

Closed edwardscaleb9 closed 2 years ago

edwardscaleb9 commented 2 years ago

Platform: Docker behind Nginx reverse proxy (issue is present when bypassing reverse proxy as well)

Expected behavior: Server-wide statistics area should be displaying the total number of seconds all users combined spent watching content.

Actual behavior: Server-wide statistics area is displaying "That is NaN seconds of content!"

Are there any logs I can provide? I checked the browser console but all I see is: my.domain/:1 Error handling response: TypeError: Cannot read properties of undefined (reading 'takeRecords') at Function.e.closeListeners (chrome-extension://jkgeppojddflfhbfhjgapbcdnabegmdg/content-script.js:1:5858) at chrome-extension://jkgeppojddflfhbfhjgapbcdnabegmdg/content-script.js:1:3858

aunefyren commented 2 years ago

Weird. Does every other statistic load properly and only server-wide watch time is NaN?

Is server-wide watch time for every media-type NaN or is only the combined watch time for movies, shows and music NaN?

edwardscaleb9 commented 2 years ago

All other statistics work properly. The different media types work correctly, it's just the combined time in seconds that is showing as NaN.

image

aunefyren commented 2 years ago

Fixed in new update (104b4c9). All media types were summed, even if disabled. Disabled media types were therefore undefined, resulting in NaN.