foo_spotify icon indicating copy to clipboard operation
foo_spotify copied to clipboard

[json.exception.type_error.304] cannot use at() with null

Open meow6969 opened this issue 3 years ago • 2 comments

when trying to load this playlist "https://open.spotify.com/playlist/52vsJpNfjXxTwMBptTb34w?si=cZ0EjtYKQ4eixPxVJxPo6A" I get an error saying The following error(s) occurred during loading of the location(s): [json.exception.type_error.304] cannot use at() with null I have tried: reinstalling the component and tried loading the playlist on multiple computers.

meow6969 avatar Apr 03 '21 04:04 meow6969

Thanks, I'll take a look.

TheQwertiest avatar Apr 09 '21 13:04 TheQwertiest

Just had this issue on my own playlist. I suspect the issue is related to null tracks appearing in JSON responses from Spotify's end. In OP's playlist, it says there are 288 songs. However, if you scroll to the bottom you can see in actuality there is only 283. My playlist with the same issue also has a miscount.

When calling the API against OP's playlist it returns 288 tracks. However, the missing 5 appear as the below in the JSON response:

{ "track" : null }

If you make a new playlist by copying every song in OP's playlist the null tracks above aren't copied, the counts match and the issue does not present itself.

So, my recommended (non-programmatic) fix would be to copy all the songs in your playlist into a new one. This fixed my issue and suspect it will fix yours too.

liamharper2453 avatar Jan 05 '22 16:01 liamharper2453