mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #839] Error: CLI tool does not start up #1438
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1438
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ralph on GitHub (Sep 26, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/839
Describe the bug
The CLI tool does nothing when I start it, it just hangs until I hit CTRL-C.
To Reproduce
On MacOS:
spotify_player authenticateand allow to connectspotify_player-> Nothing happensExpected behaviour
I expect to see the TUI of spotify_player.
Log and backtrace
The log has just 1 line with the config:
Screenshots
Environment
spotify_player 0.21.1Additional context
I tried with and without using a client_id in the config. When using a client_id in the config, it was correctly picked up in the logs (
client_id: Some("12345")), butspotify_player authenticatewould still use the default token (65b7...).All backtrace files were empty.
Am I doing anything wrong? 🤔
@James-Steve commented on GitHub (Sep 29, 2025):
I have the same exact issue, got it working temporally but has failed again
System
Fedora Linux 42
Installed Via: Cargo Install --locked
Audio: PipeWire - WirePlumber - PipeWirePulse
Note
Was working a month or two ago and now having this issue.
I suspect it has something to do with the Cache of Saved Songs
Steps Taken to fix
Uninstalled Via Cargo:
Logs
2025-09-29T08:19:03.735881Z INFO spotify_player::state::data: Loading Playlists data from /home/jim/.cache/spotify player/Playlists_cache.json... 2025-09-29T08:19:03.736233Z INFO spotify_player::state::data: Successfully loaded Playlists data! 2025-09-29T08:19:03.736267Z INFO spotify_player::state::data: Loading FollowedArtists data from /home/jim/.cache/spotify-player/FollowedArtists_cache.json... 2025-09-29T08:19:03.736496Z INFO spotify_player::state::data: Successfully loaded FollowedArtists data! 2025-09-29T08:19:03.736521Z INFO spotify_player::state::data: Loading SavedShows data from /home/jim/.cache/spotify-player/SavedShows_cache.json... 2025-09-29T08:19:03.736609Z INFO spotify_player::state::data: Successfully loaded SavedShows data! 2025-09-29T08:19:03.736630Z INFO spotify_player::state::data: Loading SavedAlbums data from /home/jim/.cache/spotify-player/SavedAlbums_cache.json... 2025-09-29T08:19:03.736675Z INFO spotify_player::state::data: Successfully loaded SavedAlbums data! 2025-09-29T08:19:03.736695Z INFO spotify_player::state::data: Loading SavedTracks data from /home/jim/.cache/spotify-player/SavedTracks_cache.json... 2025-09-29T08:19:03.748140Z INFO spotify_player::state::data: Successfully loaded SavedTracks data! 2025-09-29T08:19:03.822064Z INFO spotify_player::auth: Using cached credentials 2025-09-29T08:19:03.822116Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, is_group: false, initial_volume: 45875, disable_volume: false, volume_steps: 64 } 2025-09-29T08:19:03.822180Z INFO librespot_playback::mixer::softmixer: Mixing with softvol and volume control: Log(60.0) 2025-09-29T08:19:03.822228Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=13cc5ebd-467e-4a4f-b02b-6f4afddd301c 2025-09-29T08:19:03.822429Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2025-09-29T08:19:03.822527Z INFO librespot_playback::convert: Converting with ditherer: tpdf 2025-09-29T08:19:03.822568Z INFO librespot_playback::audio_backend::pulseaudio: Using PulseAudioSink with format: S16 2025-09-29T08:19:04.617490Z INFO librespot_core::session: Connecting to AP "ap-gew1.spotify.com:4070"@ralph commented on GitHub (Sep 29, 2025):
Thanks for chiming in! After reading your report, I tried again after deleting both
~/.cache/spotify-playerand.config/spotify-player, but no success. :(I also tried version 0.20.7, which does start up, but seems to fail to retrieve a proper token:
I guess this is what's fixed according to the release note in 0.21? Except at least for me, the app does not start any more.
@tifandotme commented on GitHub (Oct 3, 2025):
This does the trick:
TERM=xterm-256color spotify_playerI am using ghostty
fyi
spotify_player get key playbackworks without overriding TERM@ralph commented on GitHub (Oct 10, 2025):
@tifandotme Great, I can confirm this works 🥳
I'm using tmux inside Ghostty, if that matters. Wouldn't have thought so, though.
@richardhapb commented on GitHub (Feb 24, 2026):
I sometimes had the same issue.
I think this is related to this. I fixed that, and I believe it should work fine when the new release of
rspotifyis integrated intoSpotify-Player.https://github.com/ramsayleung/rspotify/pull/553