[GH-ISSUE #285] JSON parse error when fetching user albums with market set to FromToken #88

Closed
opened 2026-02-27 20:23:03 +03:00 by kerem · 0 comments
Owner

Originally created by @hrkfdn on GitHub (Nov 20, 2021).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/285

Describe the bug
current_user_saved_albums_manual(Some(&Market::FromToken), Some(50), Some(0)) will throw an error:

json parse error: missing field available_markets at line 428 column 5

I compared outputs with the one where market is not set and it looks like available_markets is not available when passing Some(&Market::FromToken). Maybe it should be optional?

Originally created by @hrkfdn on GitHub (Nov 20, 2021). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/285 **Describe the bug** `current_user_saved_albums_manual(Some(&Market::FromToken), Some(50), Some(0))` will throw an error: `json parse error: missing field `available_markets` at line 428 column 5` I compared outputs with the one where market is not set and it looks like `available_markets` is not available when passing `Some(&Market::FromToken)`. Maybe it should be optional?
kerem 2026-02-27 20:23:03 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rspotify#88
No description provided.