Describe the bug
ncspot can't play (or download) any track. Maybe it's linked to librespot's issue? (Cannot parse CDN URL expiry timestamp 'verify.....') ([ERROR] Unable to load encrypted file: Error { kind:....)
To Reproduce
Steps to reproduce the behavior:
- snap install ncspot
- snap remove ncspot
- cargo install --locked ncspot
- ncspot -d ncspot-debug.log
- press on the track
Expected behavior
ncspot should play the track on pressing enter or shift+p
Screenshots
System (please complete the following information):
Backtrace/Debug log
[2025-08-04][19:28:10] [librespot_playback::player] [INFO] Loading with Spotify URI spotify:track:6hanQd7bGkWtDS1P7vry3g
[2025-08-04][19:28:10] [librespot_audio::fetch] [DEBUG] Downloading file 9d864220f664c7581925141fda99ddbd6c2098f7
[2025-08-04][19:28:10] [librespot_core::http_client] [DEBUG] Requesting https://gew4-spclient.spotify.com:443/storage-resolve/files/audio/interactive/9d864220f664c7581925141fda99ddbd6c2098f7?product=0&country=ID&salt=802764207
[2025-08-04][19:28:10] [librespot_core::cdn_url] [WARN] Cannot parse CDN URL expiry timestamp 'verify=1754414890-hHi5aziJ7AV50JPtHWXvCym%2FuXe7BXRG79MCQrKgFek%3D' from 'https://audio-cf.spotifycdn.com/audio/9d864220f664c7581925141fda99ddbd6c2098f7?verify=1754414890-hHi5aziJ7AV50JPtHWXvCym%2FuXe7BXRG79MCQrKgFek%3D'
[2025-08-04][19:28:10] [librespot_playback::player] [ERROR] Unable to load encrypted file: Error { kind: Unavailable, error: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }) }) }
[2025-08-04][19:28:10] [librespot_playback::player] [ERROR] Skipping to next track, unable to load track <SpotifyId("spotify:track:6hanQd7bGkWtDS1P7vry3g")>: ()
[2025-08-04][19:28:10] [ncspot::spotify_worker] [DEBUG] Unhandled player event: Unavailable { play_request_id: 1, track_id: SpotifyId("spotify:track:6hanQd7bGkWtDS1P7vry3g") }
[2025-08-04][19:28:25] [ncspot::spotify] [INFO] stop()
[2025-08-04][19:28:25] [ncspot::spotify] [INFO] sending command to worker: Stop
[2025-08-04][19:28:25] [librespot_playback::player] [DEBUG] command=Stop
[2025-08-04][19:28:25] [ncspot::spotify] [INFO] loading track: Track(Track { id: Some("5xjp65KkYA2StLSMJ0vZK5"), uri: "spotify:track:5xjp65KkYA2StLSMJ0vZK5", title: "Rebecca", track_number: 3, disc_number: 1, duration: 176936, artists: ["Dearveni"], artist_ids: ["2zyZWxDe4iPUpXXjZwnTC8"], album: Some("Love, Veni"), album_id: Some("4dg6dmTGHWNCzk3EarzGBF"), album_artists: ["Dearveni"], cover_url: Some("https://i.scdn.co/image/ab67616d0000b2737580320f64a2a20d7565d72b"), url: "https://open.spotify.com/track/5xjp65KkYA2StLSMJ0vZK5", added_at: Some(2025-07-20T13:23:13Z), list_index: 0, is_local: false, is_playable: Some(true) })
[2025-08-04][19:28:25] [ncspot::spotify] [INFO] sending command to worker: Load(Track(Track { id: Some("5xjp65KkYA2StLSMJ0vZK5"), uri: "spotify:track:5xjp65KkYA2StLSMJ0vZK5", title: "Rebecca", track_number: 3, disc_number: 1, duration: 176936, artists: ["Dearveni"], artist_ids: ["2zyZWxDe4iPUpXXjZwnTC8"], album: Some("Love, Veni"), album_id: Some("4dg6dmTGHWNCzk3EarzGBF"), album_artists: ["Dearveni"], cover_url: Some("https://i.scdn.co/image/ab67616d0000b2737580320f64a2a20d7565d72b"), url: "https://open.spotify.com/track/5xjp65KkYA2StLSMJ0vZK5", added_at: Some(2025-07-20T13:23:13Z), list_index: 0, is_local: false, is_playable: Some(true) }), true, 0)
[2025-08-04][19:28:25] [ncspot::spotify] [DEBUG] Sending mpris command: EmitMetadataStatus
[2025-08-04][19:28:25] [ncspot::spotify] [DEBUG] Sending mpris command: EmitSeekedStatus(0)
[2025-08-04][19:28:25] [ncspot::spotify_worker] [INFO] player loading track: SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5")
[2025-08-04][19:28:25] [librespot_playback::player] [DEBUG] command=Load(SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5"), true, 0)
[2025-08-04][19:28:25] [ncspot::spotify_worker] [DEBUG] Unhandled player event: PlayRequestIdChanged { play_request_id: 2 }
[2025-08-04][19:28:25] [ncspot::spotify_worker] [DEBUG] Unhandled player event: Loading { play_request_id: 2, track_id: SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5"), position_ms: 0 }
[2025-08-04][19:28:25] [ncspot::mpris] [INFO] sending MPRIS seeked signal
[2025-08-04][19:28:25] [librespot_core::http_client] [DEBUG] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/b5f03f7a8a0641c1ae55fc0d07322785?product=0&country=ID&salt=3167095561
[2025-08-04][19:28:25] [ncspot::application] [TRACE] event received: Stopped
[2025-08-04][19:28:25] [ncspot::spotify] [DEBUG] Sending mpris command: EmitPlaybackStatus
[2025-08-04][19:28:25] [librespot_playback::player] [INFO] Loading with Spotify URI spotify:track:5xjp65KkYA2StLSMJ0vZK5
[2025-08-04][19:28:25] [librespot_audio::fetch] [DEBUG] Downloading file e47ccf39b8caf5267cc65155808c1f37c1ac82f3
[2025-08-04][19:28:25] [librespot_core::http_client] [DEBUG] Requesting https://gew4-spclient.spotify.com:443/storage-resolve/files/audio/interactive/e47ccf39b8caf5267cc65155808c1f37c1ac82f3?product=0&country=ID&salt=3807440326
[2025-08-04][19:28:25] [librespot_core::cdn_url] [WARN] Cannot parse CDN URL expiry timestamp 'verify=1754414905-u0h6OGr%2B1EI4KenxFoVgDOAUoY1c7yN%2FPUAmBiZ3jXI%3D' from 'https://audio-cf.spotifycdn.com/audio/e47ccf39b8caf5267cc65155808c1f37c1ac82f3?verify=1754414905-u0h6OGr%2B1EI4KenxFoVgDOAUoY1c7yN%2FPUAmBiZ3jXI%3D'
[2025-08-04][19:28:25] [librespot_playback::player] [ERROR] Unable to load encrypted file: Error { kind: Unavailable, error: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }) }) }
[2025-08-04][19:28:25] [librespot_playback::player] [ERROR] Skipping to next track, unable to load track <SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5")>: ()
[2025-08-04][19:28:25] [ncspot::spotify_worker] [DEBUG] Unhandled player event: Unavailable { play_request_id: 2, track_id: SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5") }
Instructions on how to capture debug logs can be found in the developers
manual.
For backtraces, make sure you run a debug build of ncspot, e.g. by running the
command mentioned in the compilation
instructions. You can find the
latest backtrace at ~/.cache/ncspot/backtrace.log.
Additional context
i was using ncspot with snap before and for some reason ncspot is unable to play the track i searched for, but somehow is still able to play the tracks from my "Liked Songs". I tried restarting multiple times but nothing works. So, I remove the app and decided to reinstall it using cargo following the instructions from users.md. After successfully installing it, i ran into the same issue, even anything even worse because now i couldn't access the previously playable tracks.
Describe the bug
ncspot can't play (or download) any track. Maybe it's linked to librespot's issue? (Cannot parse CDN URL expiry timestamp 'verify.....') ([ERROR] Unable to load encrypted file: Error { kind:....)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
ncspot should play the track on pressing enter or shift+p
Screenshots
System (please complete the following information):
OS: Linux Mint 21.3 x86_64
Terminal: tmux 3.2a and xfce4
Version: ncspot 1.3.0
Installed from: cargo
Backtrace/Debug log
[2025-08-04][19:28:10] [librespot_playback::player] [INFO] Loading with Spotify URI spotify:track:6hanQd7bGkWtDS1P7vry3g
[2025-08-04][19:28:10] [librespot_audio::fetch] [DEBUG] Downloading file 9d864220f664c7581925141fda99ddbd6c2098f7
[2025-08-04][19:28:10] [librespot_core::http_client] [DEBUG] Requesting https://gew4-spclient.spotify.com:443/storage-resolve/files/audio/interactive/9d864220f664c7581925141fda99ddbd6c2098f7?product=0&country=ID&salt=802764207
[2025-08-04][19:28:10] [librespot_core::cdn_url] [WARN] Cannot parse CDN URL expiry timestamp 'verify=1754414890-hHi5aziJ7AV50JPtHWXvCym%2FuXe7BXRG79MCQrKgFek%3D' from 'https://audio-cf.spotifycdn.com/audio/9d864220f664c7581925141fda99ddbd6c2098f7?verify=1754414890-hHi5aziJ7AV50JPtHWXvCym%2FuXe7BXRG79MCQrKgFek%3D'
[2025-08-04][19:28:10] [librespot_playback::player] [ERROR] Unable to load encrypted file: Error { kind: Unavailable, error: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }) }) }
[2025-08-04][19:28:10] [librespot_playback::player] [ERROR] Skipping to next track, unable to load track <SpotifyId("spotify:track:6hanQd7bGkWtDS1P7vry3g")>: ()
[2025-08-04][19:28:10] [ncspot::spotify_worker] [DEBUG] Unhandled player event: Unavailable { play_request_id: 1, track_id: SpotifyId("spotify:track:6hanQd7bGkWtDS1P7vry3g") }
[2025-08-04][19:28:25] [ncspot::spotify] [INFO] stop()
[2025-08-04][19:28:25] [ncspot::spotify] [INFO] sending command to worker: Stop
[2025-08-04][19:28:25] [librespot_playback::player] [DEBUG] command=Stop
[2025-08-04][19:28:25] [ncspot::spotify] [INFO] loading track: Track(Track { id: Some("5xjp65KkYA2StLSMJ0vZK5"), uri: "spotify:track:5xjp65KkYA2StLSMJ0vZK5", title: "Rebecca", track_number: 3, disc_number: 1, duration: 176936, artists: ["Dearveni"], artist_ids: ["2zyZWxDe4iPUpXXjZwnTC8"], album: Some("Love, Veni"), album_id: Some("4dg6dmTGHWNCzk3EarzGBF"), album_artists: ["Dearveni"], cover_url: Some("https://i.scdn.co/image/ab67616d0000b2737580320f64a2a20d7565d72b"), url: "https://open.spotify.com/track/5xjp65KkYA2StLSMJ0vZK5", added_at: Some(2025-07-20T13:23:13Z), list_index: 0, is_local: false, is_playable: Some(true) })
[2025-08-04][19:28:25] [ncspot::spotify] [INFO] sending command to worker: Load(Track(Track { id: Some("5xjp65KkYA2StLSMJ0vZK5"), uri: "spotify:track:5xjp65KkYA2StLSMJ0vZK5", title: "Rebecca", track_number: 3, disc_number: 1, duration: 176936, artists: ["Dearveni"], artist_ids: ["2zyZWxDe4iPUpXXjZwnTC8"], album: Some("Love, Veni"), album_id: Some("4dg6dmTGHWNCzk3EarzGBF"), album_artists: ["Dearveni"], cover_url: Some("https://i.scdn.co/image/ab67616d0000b2737580320f64a2a20d7565d72b"), url: "https://open.spotify.com/track/5xjp65KkYA2StLSMJ0vZK5", added_at: Some(2025-07-20T13:23:13Z), list_index: 0, is_local: false, is_playable: Some(true) }), true, 0)
[2025-08-04][19:28:25] [ncspot::spotify] [DEBUG] Sending mpris command: EmitMetadataStatus
[2025-08-04][19:28:25] [ncspot::spotify] [DEBUG] Sending mpris command: EmitSeekedStatus(0)
[2025-08-04][19:28:25] [ncspot::spotify_worker] [INFO] player loading track: SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5")
[2025-08-04][19:28:25] [librespot_playback::player] [DEBUG] command=Load(SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5"), true, 0)
[2025-08-04][19:28:25] [ncspot::spotify_worker] [DEBUG] Unhandled player event: PlayRequestIdChanged { play_request_id: 2 }
[2025-08-04][19:28:25] [ncspot::spotify_worker] [DEBUG] Unhandled player event: Loading { play_request_id: 2, track_id: SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5"), position_ms: 0 }
[2025-08-04][19:28:25] [ncspot::mpris] [INFO] sending MPRIS seeked signal
[2025-08-04][19:28:25] [librespot_core::http_client] [DEBUG] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/b5f03f7a8a0641c1ae55fc0d07322785?product=0&country=ID&salt=3167095561
[2025-08-04][19:28:25] [ncspot::application] [TRACE] event received: Stopped
[2025-08-04][19:28:25] [ncspot::spotify] [DEBUG] Sending mpris command: EmitPlaybackStatus
[2025-08-04][19:28:25] [librespot_playback::player] [INFO] Loading with Spotify URI spotify:track:5xjp65KkYA2StLSMJ0vZK5
[2025-08-04][19:28:25] [librespot_audio::fetch] [DEBUG] Downloading file e47ccf39b8caf5267cc65155808c1f37c1ac82f3
[2025-08-04][19:28:25] [librespot_core::http_client] [DEBUG] Requesting https://gew4-spclient.spotify.com:443/storage-resolve/files/audio/interactive/e47ccf39b8caf5267cc65155808c1f37c1ac82f3?product=0&country=ID&salt=3807440326
[2025-08-04][19:28:25] [librespot_core::cdn_url] [WARN] Cannot parse CDN URL expiry timestamp 'verify=1754414905-u0h6OGr%2B1EI4KenxFoVgDOAUoY1c7yN%2FPUAmBiZ3jXI%3D' from 'https://audio-cf.spotifycdn.com/audio/e47ccf39b8caf5267cc65155808c1f37c1ac82f3?verify=1754414905-u0h6OGr%2B1EI4KenxFoVgDOAUoY1c7yN%2FPUAmBiZ3jXI%3D'
[2025-08-04][19:28:25] [librespot_playback::player] [ERROR] Unable to load encrypted file: Error { kind: Unavailable, error: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }) }) }
[2025-08-04][19:28:25] [librespot_playback::player] [ERROR] Skipping to next track, unable to load track <SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5")>: ()
[2025-08-04][19:28:25] [ncspot::spotify_worker] [DEBUG] Unhandled player event: Unavailable { play_request_id: 2, track_id: SpotifyId("spotify:track:5xjp65KkYA2StLSMJ0vZK5") }
Instructions on how to capture debug logs can be found in the developers
manual.
For backtraces, make sure you run a debug build of ncspot, e.g. by running the
command mentioned in the compilation
instructions. You can find the
latest backtrace at
~/.cache/ncspot/backtrace.log.Additional context
i was using ncspot with snap before and for some reason ncspot is unable to play the track i searched for, but somehow is still able to play the tracks from my "Liked Songs". I tried restarting multiple times but nothing works. So, I remove the app and decided to reinstall it using cargo following the instructions from users.md. After successfully installing it, i ran into the same issue, even anything even worse because now i couldn't access the previously playable tracks.