[GH-ISSUE #440] json parse error: unknown variant Smartwatch #146

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

Originally created by @ndoolan360 on GitHub (Aug 31, 2023).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/440

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

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

To Reproduce
Steps to reproduce the behavior:
Have registered device of type Smartwatch and call device() method.

Expected behavior
Device should be returned with type Smartwatch.

Log/Output data
N/A

Additional context
Similar issue here: https://github.com/ramsayleung/rspotify/issues/383

Originally created by @ndoolan360 on GitHub (Aug 31, 2023). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/440 **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 `Smartwatch`, expected one of `Computer`, `Tablet`, `Smartphone`, `Speaker`, `Tv`, `Avr`, `Stb`, `AudioDongle`, `GameConsole`, `CastVideo`, `CastAudio`, `Automobile`, `Unknown` at line 9 column 25 ``` **To Reproduce** Steps to reproduce the behavior: Have registered device of type Smartwatch and call device() method. **Expected behavior** Device should be returned with type Smartwatch. **Log/Output data** N/A **Additional context** Similar issue here: https://github.com/ramsayleung/rspotify/issues/383
kerem 2026-02-27 20:23:23 +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#146
No description provided.