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
Describe the bug
When I make a api call to an existing playlist https://myinstance.tld/api/v1/auth/playlists/{playlist id} that has no videos in it return a 403 error with { "error": "Index out of bounds" }
Steps to Reproduce
I'm using the api call in a function for my userscript, but I tried it directly in the address bar of my browser and had the same result:
logged in to my instance
removed all videos from an existing playlist
made the api call in the browser using the playlist id
got the json with error mentioned.
added a video to the playlist
remade the api call
got the proper callback (all ok)
created a new playlist without adding a video to it
made a new api call with the new playlist's id
got the error
added a video to the new playlist
remade the api call
and all is good again.
Additional context
As I said, it seems to be happening to only empty playlists. As I said I'm using this api call to check if a playlist exists or not (it doesn't matter if it has no videos) and I think this error shouldn't be there for an existing playlist and I should be getting the playlist's object with the videoCount set to 0.
The text was updated successfully, but these errors were encountered:
Describe the bug
When I make a api call to an existing playlist
https://myinstance.tld/api/v1/auth/playlists/{playlist id}
that has no videos in it return a 403 error with{ "error": "Index out of bounds" }
Steps to Reproduce
I'm using the api call in a function for my userscript, but I tried it directly in the address bar of my browser and had the same result:
Additional context
As I said, it seems to be happening to only empty playlists. As I said I'm using this api call to check if a playlist exists or not (it doesn't matter if it has no videos) and I think this error shouldn't be there for an existing playlist and I should be getting the playlist's object with the videoCount set to 0.
The text was updated successfully, but these errors were encountered: