ramsayleung / rspotify

Spotify Web API SDK implemented on Rust
MIT License
632 stars 121 forks source link

json parse error: unknown variant `Smartwatch` #440

Closed NDoolan360 closed 11 months ago

NDoolan360 commented 1 year ago

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