You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling Sonos.getTrack() should return null for the album art if no album art is returned from Sonos, rather than causing an error.
Current Behavior
When calling Sonos.getTrack(), the following error is shown
UnhandledPromiseRejectionWarning: TypeError: track.albumArtURI.startsWith is not a function.
Possible Solution
The issue is most likely that track.albumArtURI is returning null or some non-string value, causing an exception, but I have not confirmed that to be the case. This issue only occurs about every other time I run the example code below, so it may be that the Sonos is not returning the proper response in time?
Expected Behavior
Calling Sonos.getTrack() should return null for the album art if no album art is returned from Sonos, rather than causing an error.
Current Behavior
When calling Sonos.getTrack(), the following error is shown
Possible Solution
The issue is most likely that
track.albumArtURI
is returning null or some non-string value, causing an exception, but I have not confirmed that to be the case. This issue only occurs about every other time I run the example code below, so it may be that the Sonos is not returning the proper response in time?Sample code or executed example
Versions (and Environment)
Node version: 14.17.4
node-sonos version: 1.14.1
OS: Linux
The text was updated successfully, but these errors were encountered: