Closed brunohpaiva closed 6 months ago
Describe the bug An error occurs when trying to fetch Spotify's recently played tracks if the user is in a private session.
To Reproduce
Expected behavior It shouldn't throw an error when the user is in a private session.
Logs If possible reproduce the issue with debug logging ON
2023-12-12T02:37:03+00:00 debug : [Sources] [Spotify - unnamed] Refreshing recently played 2023-12-12T02:37:04+00:00 error : [Sources] [Spotify - unnamed] Error occurred while polling 2023-12-12T02:37:04+00:00 error : [Sources] [Spotify - unnamed] Cannot read properties of undefined (reading 'data') TypeError: at t.buildTrackString (CWD/build/server.js:12:90579) at b.getRecentlyPlayed (CWD/build/server.js:12:49545) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async b.doPolling (CWD/build/server.js:9:14672) at async b.startPolling (CWD/build/server.js:9:12562) at async b.poll (CWD/build/server.js:9:12202)
Versions (please complete the following information):
Fixed in #118
Describe the bug An error occurs when trying to fetch Spotify's recently played tracks if the user is in a private session.
To Reproduce
Expected behavior It shouldn't throw an error when the user is in a private session.
Logs If possible reproduce the issue with debug logging ON
Versions (please complete the following information):