Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrackId in FullTrack can be null #279

Closed
aome510 opened this issue Nov 8, 2021 · 1 comment · Fixed by #282
Closed

TrackId in FullTrack can be null #279

aome510 opened this issue Nov 8, 2021 · 1 comment · Fixed by #282
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@aome510
Copy link
Contributor

aome510 commented Nov 8, 2021

Describe the bug
According the specs defined in docs.rs, TrackId in FullTrack is not null. However, get playlist items can return a track object will null id.

To Reproduce
Steps to reproduce the behavior:

  1. To get the playlist having a track with null ID, run
curl -X "GET" \
"https://api.spotify.com/v1/playlists/2RI4NLi6npcHfCNQQxP3nM/tracks?limit=100&offset=900" \
-H "Accept: application/json" -H "Content-Type: application/json" \
-H "Authorization: Bearer <TOKEN>" \
> /tmp/data.txt
  1. Then run jq .items[].track.id /tmp/data.txt to view the list of track's ids

Expected behavior
There should be at least one null entry

@aome510 aome510 added bug Something isn't working help wanted Extra attention is needed labels Nov 8, 2021
@marioortizmanero
Copy link
Collaborator

marioortizmanero commented Nov 19, 2021

Oh nice, the docs have been updated and look a bit more detailed now. Which means that the links are broken... I've opened #281 for that.

I was able to reproduce your issue with your indications, which should be fixed with #282. As far as I can tell this happens with local tracks only.

Thanks for the report!

@aome510 aome510 closed this as completed Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants