[GH-ISSUE #383] json parse error: unknown variant STB #121

Closed
opened 2026-02-27 20:23:14 +03:00 by kerem · 1 comment
Owner

Originally created by @dzubybb on GitHub (Jan 17, 2023).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/383

Describe the bug
When calling device() method returns error:

json parse error: unknown variant `STB`, expected one of `Computer`, `Tablet`, `Smartphone`, `Speaker`, `Tv`, `Avr`, `Stb`, `AudioDongle`, `GameConsole`, `CastVideo`, `CastAudio`, `Automobile`, `Unknown` at line 16 column 18

To Reproduce
Have registered device of type Stb and call device() method.

Expected behavior
Device should be returned with type Stb.

Additional context
Library is called from spotifyd, version 0.11.5

Originally created by @dzubybb on GitHub (Jan 17, 2023). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/383 **Describe the bug** When calling [device()](https://docs.rs/rspotify/latest/rspotify/clients/trait.OAuthClient.html#method.device) method returns error: ``` json parse error: unknown variant `STB`, expected one of `Computer`, `Tablet`, `Smartphone`, `Speaker`, `Tv`, `Avr`, `Stb`, `AudioDongle`, `GameConsole`, `CastVideo`, `CastAudio`, `Automobile`, `Unknown` at line 16 column 18 ``` **To Reproduce** Have registered device of type Stb and call device() method. **Expected behavior** Device should be returned with type Stb. **Additional context** Library is called from spotifyd, version 0.11.5
kerem 2026-02-27 20:23:14 +03:00
Author
Owner

@dzubybb commented on GitHub (Jan 17, 2023):

Relevant pull request in spotifyd: https://github.com/Spotifyd/spotifyd/pull/1162

<!-- gh-comment-id:1385781790 --> @dzubybb commented on GitHub (Jan 17, 2023): Relevant pull request in spotifyd: https://github.com/Spotifyd/spotifyd/pull/1162
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#121
No description provided.