Rigellute / spotify-tui

Spotify for the terminal written in Rust 🚀
MIT License
17.61k stars 526 forks source link

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

Closed radrow closed 5 months ago

radrow commented 5 months ago

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\",       │     
     └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘     
apprehensions commented 5 months ago

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

radrow commented 5 months ago

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

Could you elaborate?

apprehensions commented 5 months ago

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

radrow commented 5 months ago

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