[GH-ISSUE #1132] Api response: convert result failed, reason: Error("invalid value: integer -21, expected u32", line: 24, column: 21); #538

Closed
opened 2026-02-28 14:49:45 +03:00 by kerem · 4 comments
Owner

Originally created by @radrow on GitHub (Jun 21, 2024).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1132

Appeared completely out of the blue. Version: spotify-tui 0.25.0, playing from spotifyd 0.3.3. I'm happy to provide more context, but I don't have much else.

Pic:

image

Text of the error:

┌Error─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐     
     │Api response: convert result failed, reason: Error("invalid value: integer `-21`, expected u32", line: 24, column: 21); content: ["{\n  \"device\" : {\n    \"id\"│     
     │: \"1bbe8c1c6dad5672a29899eb8b1fd2ca69a39595\",\n    \"is_active\" : true,\n    \"is_private_session\" : false,\n    \"is_restricted\" : false,\n    \"name\" :   │     
     │\"HP_DTU_radrow\",\n    \"supports_volume\" : true,\n    \"type\" : \"Speaker\",\n    \"volume_percent\" : 89\n  },\n  \"shuffle_state\" : true,\n                │     
     │\"smart_shuffle\" : false,\n  \"repeat_state\" : \"off\",\n  \"timestamp\" : 1718965270310,\n  \"context\" : {\n    \"external_urls\" : {\n      \"spotify\" :    │     
     │\"https://open.spotify.com/album/3cN3mENkACWuRCDOuQUtfw\"\n    },\n    \"href\" : \"https://api.spotify.com/v1/albums/3cN3mENkACWuRCDOuQUtfw\",\n    \"type\" :   │     
     │\"album\",\n    \"uri\" : \"spotify:album:3cN3mENkACWuRCDOuQUtfw\"\n  },\n  \"progress_ms\" : -21,\n  \"item\" : {\n    \"album\" : {\n      \"album_type\" :     │     
     │\"album\",\n      \"artists\" : [ {\n        \"external_urls\" : {\n          \"spotify\" : \"https://open.spotify.com/artist/4vGrte8FDu062Ntj0RsPiZ\"\n          │     
     │},\n        \"href\" : \"https://api.spotify.com/v1/artists/4vGrte8FDu062Ntj0RsPiZ\",\n        \"id\" : \"4vGrte8FDu062Ntj0RsPiZ\",\n        \"name\" :           │     
     │\"Polyphia\",\n        \"type\" : \"artist\",\n        \"uri\" : \"spotify:artist:4vGrte8FDu062Ntj0RsPiZ\"\n      } ],\n      \"available_markets\" : [ \"AR\",   │     
     │\"AU\", \"AT\", \"BE\", \"BO\", \"BR\", \"BG\", \"CA\", \"CL\", \"CO\", \"CR\", \"CY\", \"CZ\", \"DK\", \"DO\", \"DE\", \"EC\", \"EE\", \"SV\", \"FI\", \"FR\",   │     
     │\"GR\", \"GT\", \"HN\", \"HK\", \"HU\", \"IS\", \"IE\", \"IT\", \"LV\", \"LT\", \"LU\", \"MY\", \"MT\", \"MX\", \"NL\", \"NZ\", \"NI\", \"NO\", \"PA\", \"PY\",   │     
     │\"PE\", \"PH\", \"PL\", \"PT\", \"SG\", \"SK\", \"ES\", \"SE\", \"CH\", \"TW\", \"TR\", \"UY\", \"US\", \"GB\", \"AD\", \"LI\", \"MC\", \"ID\", \"JP\", \"TH\",   │     
     │\"VN\", \"RO\", \"IL\", \"ZA\", \"SA\", \"AE\", \"BH\", \"QA\", \"OM\", \"KW\", \"EG\", \"MA\", \"DZ\", \"TN\", \"LB\", \"JO\", \"PS\", \"IN\", \"BY\", \"KZ\",   │     
     │\"MD\", \"UA\", \"AL\", \"BA\", \"HR\", \"ME\", \"MK\", \"RS\", \"SI\", \"KR\", \"BD\", \"PK\", \"LK\", \"GH\", \"KE\", \"NG\", \"TZ\", \"UG\", \"AG\", \"AM\",   │     
     │\"BS\", \"BB\", \"BZ\", \"BT\", \"BW\", \"BF\", \"CV\", \"CW\", \"DM\", \"FJ\", \"GM\", \"GE\", \"GD\", \"GW\", \"GY\", \"HT\", \"JM\", \"KI\", \"LS\", \"LR\",   │     
     │\"MW\", \"MV\", \"ML\", \"MH\", \"FM\", \"NA\", \"NR\", \"NE\", \"PW\", \"PG\", \"PR\", \"WS\", \"SM\", \"ST\", \"SN\", \"SC\", \"SL\", \"SB\", \"KN\", \"LC\",   │     
     │\"VC\", \"SR\", \"TL\", \"TO\", \"TT\", \"TV\", \"VU\", \"AZ\", \"BN\", \"BI\", \"KH\", \"CM\", \"TD\", \"KM\", \"GQ\", \"SZ\", \"GA\", \"GN\", \"KG\", \"LA\",   │     
     │\"MO\", \"MR\", \"MN\", \"NP\", \"RW\", \"TG\", \"UZ\", \"ZW\", \"BJ\", \"MG\", \"MU\", \"MZ\", \"AO\", \"CI\", \"DJ\", \"ZM\", \"CD\", \"CG\", \"IQ\", \"LY\",   │     
     │\"TJ\", \"VE\", \"ET\", \"XK\" ],\n      \"external_urls\" : {\n        \"spotify\" : \"https://open.spotify.com/album/3cN3mENkACWuRCDOuQUtfw\"\n      },\n       │     
     │\"href\" : \"https://api.spotify.com/v1/albums/3cN3mENkACWuRCDOuQUtfw\",\n      \"id\" : \"3cN3mENkACWuRCDOuQUtfw\",\n      \"images\" : [ {\n        \"height\" :│     
     │640,\n        \"url\" : \"https://i.scdn.co/image/ab67616d0000b273a2d8391f5021568d253a4eef\",\n        \"width\" : 640\n      }, {\n        \"height\" : 300,\n   │     
     │\"url\" : \"https://i.scdn.co/image/ab67616d00001e02a2d8391f5021568d253a4eef\",\n        \"width\" : 300\n      }, {\n        \"height\" : 64,\n        \"url\" : │     
     │\"https://i.scdn.co/image/ab67616d00004851a2d8391f5021568d253a4eef\",\n        \"width\" : 64\n      } ],\n      \"name\" : \"Remember That You Will Die\",\n     │     
     │\"release_date\" : \"2022-10-28\",\n      \"release_date_precision\" : \"day\",\n      \"total_tracks\" : 12,\n      \"type\" : \"album\",\n      \"uri\" :       │     
     │\"spotify:album:3cN3mENkACWuRCDOuQUtfw\"\n    },\n    \"artists\" : [ {\n      \"external_urls\" : {\n        \"spotify\" :                                       │     
     │\"https://open.spotify.com/artist/4vGrte8FDu062Ntj0RsPiZ\"\n      },\n      \"href\" : \"https://api.spotify.com/v1/artists/4vGrte8FDu062Ntj0RsPiZ\",\n           │     
     │\"id\" : \"4vGrte8FDu062Ntj0RsPiZ\",\n      \"name\" : \"Polyphia\",\n      \"type\" : \"artist\",\n      \"uri\" : \"spotify:artist:4vGrte8FDu062Ntj0RsPiZ\"\n   │     
     │} ],\n    \"available_markets\" : [ \"AR\", \"AU\", \"AT\", \"BE\", \"BO\", \"BR\", \"BG\", \"CA\", \"CL\", \"CO\", \"CR\", \"CY\", \"CZ\", \"DK\", \"DO\",       │     
     └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘     
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                   
Originally created by @radrow on GitHub (Jun 21, 2024). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1132 Appeared completely out of the blue. Version: `spotify-tui 0.25.0`, playing from `spotifyd 0.3.3`. I'm happy to provide more context, but I don't have much else. Pic: ![image](https://github.com/Rigellute/spotify-tui/assets/35342116/a5d8bc8f-2604-47d9-921d-782242226f57) Text of the error: ``` ┌Error─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │Api response: convert result failed, reason: Error("invalid value: integer `-21`, expected u32", line: 24, column: 21); content: ["{\n \"device\" : {\n \"id\"│ │: \"1bbe8c1c6dad5672a29899eb8b1fd2ca69a39595\",\n \"is_active\" : true,\n \"is_private_session\" : false,\n \"is_restricted\" : false,\n \"name\" : │ │\"HP_DTU_radrow\",\n \"supports_volume\" : true,\n \"type\" : \"Speaker\",\n \"volume_percent\" : 89\n },\n \"shuffle_state\" : true,\n │ │\"smart_shuffle\" : false,\n \"repeat_state\" : \"off\",\n \"timestamp\" : 1718965270310,\n \"context\" : {\n \"external_urls\" : {\n \"spotify\" : │ │\"https://open.spotify.com/album/3cN3mENkACWuRCDOuQUtfw\"\n },\n \"href\" : \"https://api.spotify.com/v1/albums/3cN3mENkACWuRCDOuQUtfw\",\n \"type\" : │ │\"album\",\n \"uri\" : \"spotify:album:3cN3mENkACWuRCDOuQUtfw\"\n },\n \"progress_ms\" : -21,\n \"item\" : {\n \"album\" : {\n \"album_type\" : │ │\"album\",\n \"artists\" : [ {\n \"external_urls\" : {\n \"spotify\" : \"https://open.spotify.com/artist/4vGrte8FDu062Ntj0RsPiZ\"\n │ │},\n \"href\" : \"https://api.spotify.com/v1/artists/4vGrte8FDu062Ntj0RsPiZ\",\n \"id\" : \"4vGrte8FDu062Ntj0RsPiZ\",\n \"name\" : │ │\"Polyphia\",\n \"type\" : \"artist\",\n \"uri\" : \"spotify:artist:4vGrte8FDu062Ntj0RsPiZ\"\n } ],\n \"available_markets\" : [ \"AR\", │ │\"AU\", \"AT\", \"BE\", \"BO\", \"BR\", \"BG\", \"CA\", \"CL\", \"CO\", \"CR\", \"CY\", \"CZ\", \"DK\", \"DO\", \"DE\", \"EC\", \"EE\", \"SV\", \"FI\", \"FR\", │ │\"GR\", \"GT\", \"HN\", \"HK\", \"HU\", \"IS\", \"IE\", \"IT\", \"LV\", \"LT\", \"LU\", \"MY\", \"MT\", \"MX\", \"NL\", \"NZ\", \"NI\", \"NO\", \"PA\", \"PY\", │ │\"PE\", \"PH\", \"PL\", \"PT\", \"SG\", \"SK\", \"ES\", \"SE\", \"CH\", \"TW\", \"TR\", \"UY\", \"US\", \"GB\", \"AD\", \"LI\", \"MC\", \"ID\", \"JP\", \"TH\", │ │\"VN\", \"RO\", \"IL\", \"ZA\", \"SA\", \"AE\", \"BH\", \"QA\", \"OM\", \"KW\", \"EG\", \"MA\", \"DZ\", \"TN\", \"LB\", \"JO\", \"PS\", \"IN\", \"BY\", \"KZ\", │ │\"MD\", \"UA\", \"AL\", \"BA\", \"HR\", \"ME\", \"MK\", \"RS\", \"SI\", \"KR\", \"BD\", \"PK\", \"LK\", \"GH\", \"KE\", \"NG\", \"TZ\", \"UG\", \"AG\", \"AM\", │ │\"BS\", \"BB\", \"BZ\", \"BT\", \"BW\", \"BF\", \"CV\", \"CW\", \"DM\", \"FJ\", \"GM\", \"GE\", \"GD\", \"GW\", \"GY\", \"HT\", \"JM\", \"KI\", \"LS\", \"LR\", │ │\"MW\", \"MV\", \"ML\", \"MH\", \"FM\", \"NA\", \"NR\", \"NE\", \"PW\", \"PG\", \"PR\", \"WS\", \"SM\", \"ST\", \"SN\", \"SC\", \"SL\", \"SB\", \"KN\", \"LC\", │ │\"VC\", \"SR\", \"TL\", \"TO\", \"TT\", \"TV\", \"VU\", \"AZ\", \"BN\", \"BI\", \"KH\", \"CM\", \"TD\", \"KM\", \"GQ\", \"SZ\", \"GA\", \"GN\", \"KG\", \"LA\", │ │\"MO\", \"MR\", \"MN\", \"NP\", \"RW\", \"TG\", \"UZ\", \"ZW\", \"BJ\", \"MG\", \"MU\", \"MZ\", \"AO\", \"CI\", \"DJ\", \"ZM\", \"CD\", \"CG\", \"IQ\", \"LY\", │ │\"TJ\", \"VE\", \"ET\", \"XK\" ],\n \"external_urls\" : {\n \"spotify\" : \"https://open.spotify.com/album/3cN3mENkACWuRCDOuQUtfw\"\n },\n │ │\"href\" : \"https://api.spotify.com/v1/albums/3cN3mENkACWuRCDOuQUtfw\",\n \"id\" : \"3cN3mENkACWuRCDOuQUtfw\",\n \"images\" : [ {\n \"height\" :│ │640,\n \"url\" : \"https://i.scdn.co/image/ab67616d0000b273a2d8391f5021568d253a4eef\",\n \"width\" : 640\n }, {\n \"height\" : 300,\n │ │\"url\" : \"https://i.scdn.co/image/ab67616d00001e02a2d8391f5021568d253a4eef\",\n \"width\" : 300\n }, {\n \"height\" : 64,\n \"url\" : │ │\"https://i.scdn.co/image/ab67616d00004851a2d8391f5021568d253a4eef\",\n \"width\" : 64\n } ],\n \"name\" : \"Remember That You Will Die\",\n │ │\"release_date\" : \"2022-10-28\",\n \"release_date_precision\" : \"day\",\n \"total_tracks\" : 12,\n \"type\" : \"album\",\n \"uri\" : │ │\"spotify:album:3cN3mENkACWuRCDOuQUtfw\"\n },\n \"artists\" : [ {\n \"external_urls\" : {\n \"spotify\" : │ │\"https://open.spotify.com/artist/4vGrte8FDu062Ntj0RsPiZ\"\n },\n \"href\" : \"https://api.spotify.com/v1/artists/4vGrte8FDu062Ntj0RsPiZ\",\n │ │\"id\" : \"4vGrte8FDu062Ntj0RsPiZ\",\n \"name\" : \"Polyphia\",\n \"type\" : \"artist\",\n \"uri\" : \"spotify:artist:4vGrte8FDu062Ntj0RsPiZ\"\n │ │} ],\n \"available_markets\" : [ \"AR\", \"AU\", \"AT\", \"BE\", \"BO\", \"BR\", \"BG\", \"CA\", \"CL\", \"CO\", \"CR\", \"CY\", \"CZ\", \"DK\", \"DO\", │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ```
kerem closed this issue 2026-02-28 14:49:45 +03:00
Author
Owner

@sewnie commented on GitHub (Jun 21, 2024):

https://github.com/aome510/spotify-player

<!-- gh-comment-id:2182498520 --> @sewnie commented on GitHub (Jun 21, 2024): https://github.com/aome510/spotify-player
Author
Owner

@radrow commented on GitHub (Jun 21, 2024):

https://github.com/aome510/spotify-player

Could you elaborate?

<!-- gh-comment-id:2182499842 --> @radrow commented on GitHub (Jun 21, 2024): > https://github.com/aome510/spotify-player Could you elaborate?
Author
Owner

@sewnie commented on GitHub (Jun 21, 2024):

Use it. This project is abandoned, this issue has been known for years.

<!-- gh-comment-id:2182503167 --> @sewnie commented on GitHub (Jun 21, 2024): Use it. This project is abandoned, this issue has been known for years.
Author
Owner

@radrow commented on GitHub (Jun 21, 2024):

Ah, thanks. Maybe it should be more visible that it's dead?

<!-- gh-comment-id:2182504363 --> @radrow commented on GitHub (Jun 21, 2024): Ah, thanks. Maybe it should be more visible that it's dead?
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/spotify-tui#538
No description provided.