[GH-ISSUE #1512] Cannot parse the CDN URL - WARN librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=... #683

Closed
opened 2026-02-27 19:31:56 +03:00 by kerem · 4 comments
Owner

Originally created by @richardhapb on GitHub (Jun 21, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1512

Look for similar bugs

There are not related issues.

Description

In Librespot's logs there is a warning that is raised when try to parsing expiry string from the CDN with pattern https://audio-cf.spotifycdn.com

Version

v0.6.0

How to reproduce

  1. Launch librespot
  2. Play any song
  3. Warning should be appear in logs, like this:
WARN librespot_core::cdn_url: Cannot parse CDN URL expiry timestamp 'verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D' from 'https://audio-cf.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D'

Log

2025-06-21T00:36:18.825630Z  INFO librespot_playback::player: Loading <Align> with Spotify URI <spotify:track:0Sw5rzQpTmr8Z3QKvuCvhZ>
2025-06-21T00:36:18.825641Z DEBUG librespot_audio::fetch: Downloading file 2978267699b331eb59112a72cf099a4bb4af8934
2025-06-21T00:36:18.825664Z DEBUG librespot_core::http_client: Requesting https://guc3-spclient.spotify.com:443/storage-resolve/files/audio/interactive/2978267699b331eb59112a72cf099a4bb4af8934?product=0&country=CL&salt=2491544591
2025-06-21T00:36:18.999160Z  WARN librespot_core::cdn_url: Cannot parse CDN URL expiry timestamp 'verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D' from 'https://audio-cf.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D'
2025-06-21T00:36:18.999288Z TRACE librespot_core::cdn_url: Resolved CDN storage: CdnUrl {
    file_id: FileId(
        Ok(
            "2978267699b331eb59112a72cf099a4bb4af8934",
        ),
    ),
    urls: MaybeExpiringUrls(
        [
            MaybeExpiringUrl(
                "https://audio-ak.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?__token__=exp=1750552578~hmac=9a814872a5588b3a46945807fc4e5c4bf75a5445be560310b1bddc6214233ccd",
                Some(
                    Date(
                        2025-06-22 0:31:18.0 +00:00:00,
                    ),
                ),
            ),
            MaybeExpiringUrl(
                "https://audio4-fa.scdn.co/audio/2978267699b331eb59112a72cf099a4bb4af8934?1750552578_YTlL-cZwXISCEUCRAsLSCH_pUaOjFEdN6K_NY7qtBbw=",
                Some(
                    Date(
                        2025-06-22 0:31:18.0 +00:00:00,
                    ),
                ),
            ),
            MaybeExpiringUrl(
                "https://audio-cf.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D",
                None,
            ),
        ],
    ),
}
2025-06-21T00:36:18.999380Z TRACE librespot_audio::fetch: Streaming from https://audio-ak.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?__token__=exp=1750552578~hmac=9a814872a5588b3a46945807fc4e5c4bf75a5445be560310b1bddc6214233ccd
2025-06-21T00:36:19.184590Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 10 ms
2025-06-21T00:36:19.185104Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 5921 kbps
2025-06-21T00:36:19.195414Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 8 ms
2025-06-21T00:36:19.195635Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 7642 kbps
2025-06-21T00:36:19.202597Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 6 ms
2025-06-21T00:36:19.217599Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 6689 kbps
2025-06-21T00:36:19.225353Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 7 ms
2025-06-21T00:36:19.226314Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 7440 kbps
2025-06-21T00:36:19.238728Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 12 ms
2025-06-21T00:36:19.239229Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 6450 kbps
2025-06-21T00:36:19.253305Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 5746 kbps
2025-06-21T00:36:19.269180Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 5057 kbps
2025-06-21T00:36:19.269967Z  INFO librespot_playback::player: <Align> (219272 ms) loaded
2025-06-21T00:36:19.271168Z TRACE librespot_connect::spirc: ==> kPlayStatusPlay
2025-06-21T00:36:19.271262Z TRACE librespot_connect::spirc: Sending status to server: [kPlayStatusPlay]
2025-06-21T00:36:19.282418Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 6018 kbps
2025-06-21T00:36:19.290087Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 9 ms
2025-06-21T00:36:19.290129Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 3613 kbps
2025-06-21T00:36:19.306101Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 1940 kbps
2025-06-21T00:36:19.316154Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 10 ms
2025-06-21T00:36:19.316858Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 4673 kbps
2025-06-21T00:36:19.330473Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 10554 kbps
2025-06-21T00:36:19.350590Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 18247 kbps
2025-06-21T00:36:19.383339Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 25550 kbps
2025-06-21T00:36:19.435286Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 34030 kbps
2025-06-21T00:36:19.457115Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 30336 kbps
2025-06-21T00:36:19.475595Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 12 ms
2025-06-21T00:36:19.478562Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 16929 kbps
2025-06-21T00:36:19.555767Z DEBUG librespot_audio::fetch: Downloading file 2978267699b331eb59112a72cf099a4bb4af8934 complete
2025-06-21T00:36:46.903562Z TRACE librespot_core::session: Received Ping
2025-06-21T00:36:46.903752Z TRACE librespot_core::session: keep-alive state: PendingPong, timeout in 60.0
2025-06-21T00:36:46.903795Z DEBUG librespot_core::session: Session strong=4 weak=7

Host (what you are running librespot on):

  • OS: OS: Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:26 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8112 arm64

Also in Raspberry PI:

  • OS: Linux archpi 6.12.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.20-1+rpt1~bpo12+1 (2025-03-19) aarch64 GNU/Linux

Additional context

This warning is expected because the format of the received CDN. I will send a request for this.

Originally created by @richardhapb on GitHub (Jun 21, 2025). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1512 ### Look for similar bugs There are not related issues. ### Description In Librespot's logs there is a warning that is raised when try to parsing expiry string from the CDN with pattern `https://audio-cf.spotifycdn.com` ### Version v0.6.0 ### How to reproduce 1. Launch librespot 2. Play any song 3. Warning should be appear in logs, like this: ``` WARN librespot_core::cdn_url: Cannot parse CDN URL expiry timestamp 'verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D' from 'https://audio-cf.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D' ``` ### Log ``` 2025-06-21T00:36:18.825630Z INFO librespot_playback::player: Loading <Align> with Spotify URI <spotify:track:0Sw5rzQpTmr8Z3QKvuCvhZ> 2025-06-21T00:36:18.825641Z DEBUG librespot_audio::fetch: Downloading file 2978267699b331eb59112a72cf099a4bb4af8934 2025-06-21T00:36:18.825664Z DEBUG librespot_core::http_client: Requesting https://guc3-spclient.spotify.com:443/storage-resolve/files/audio/interactive/2978267699b331eb59112a72cf099a4bb4af8934?product=0&country=CL&salt=2491544591 2025-06-21T00:36:18.999160Z WARN librespot_core::cdn_url: Cannot parse CDN URL expiry timestamp 'verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D' from 'https://audio-cf.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D' 2025-06-21T00:36:18.999288Z TRACE librespot_core::cdn_url: Resolved CDN storage: CdnUrl { file_id: FileId( Ok( "2978267699b331eb59112a72cf099a4bb4af8934", ), ), urls: MaybeExpiringUrls( [ MaybeExpiringUrl( "https://audio-ak.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?__token__=exp=1750552578~hmac=9a814872a5588b3a46945807fc4e5c4bf75a5445be560310b1bddc6214233ccd", Some( Date( 2025-06-22 0:31:18.0 +00:00:00, ), ), ), MaybeExpiringUrl( "https://audio4-fa.scdn.co/audio/2978267699b331eb59112a72cf099a4bb4af8934?1750552578_YTlL-cZwXISCEUCRAsLSCH_pUaOjFEdN6K_NY7qtBbw=", Some( Date( 2025-06-22 0:31:18.0 +00:00:00, ), ), ), MaybeExpiringUrl( "https://audio-cf.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?verify=1750552578-Jo2gh%2FO95lSKyddj7XP5pZvSbQwhuiVMSLaY2yxcCZI%3D", None, ), ], ), } 2025-06-21T00:36:18.999380Z TRACE librespot_audio::fetch: Streaming from https://audio-ak.spotifycdn.com/audio/2978267699b331eb59112a72cf099a4bb4af8934?__token__=exp=1750552578~hmac=9a814872a5588b3a46945807fc4e5c4bf75a5445be560310b1bddc6214233ccd 2025-06-21T00:36:19.184590Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 10 ms 2025-06-21T00:36:19.185104Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 5921 kbps 2025-06-21T00:36:19.195414Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 8 ms 2025-06-21T00:36:19.195635Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 7642 kbps 2025-06-21T00:36:19.202597Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 6 ms 2025-06-21T00:36:19.217599Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 6689 kbps 2025-06-21T00:36:19.225353Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 7 ms 2025-06-21T00:36:19.226314Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 7440 kbps 2025-06-21T00:36:19.238728Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 12 ms 2025-06-21T00:36:19.239229Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 6450 kbps 2025-06-21T00:36:19.253305Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 5746 kbps 2025-06-21T00:36:19.269180Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 5057 kbps 2025-06-21T00:36:19.269967Z INFO librespot_playback::player: <Align> (219272 ms) loaded 2025-06-21T00:36:19.271168Z TRACE librespot_connect::spirc: ==> kPlayStatusPlay 2025-06-21T00:36:19.271262Z TRACE librespot_connect::spirc: Sending status to server: [kPlayStatusPlay] 2025-06-21T00:36:19.282418Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 6018 kbps 2025-06-21T00:36:19.290087Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 9 ms 2025-06-21T00:36:19.290129Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 3613 kbps 2025-06-21T00:36:19.306101Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 1940 kbps 2025-06-21T00:36:19.316154Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 10 ms 2025-06-21T00:36:19.316858Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 4673 kbps 2025-06-21T00:36:19.330473Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 10554 kbps 2025-06-21T00:36:19.350590Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 18247 kbps 2025-06-21T00:36:19.383339Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 25550 kbps 2025-06-21T00:36:19.435286Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 34030 kbps 2025-06-21T00:36:19.457115Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 30336 kbps 2025-06-21T00:36:19.475595Z TRACE librespot_audio::fetch::receive: Time to first byte now estimated as: 12 ms 2025-06-21T00:36:19.478562Z TRACE librespot_audio::fetch::receive: Throughput now estimated as: 16929 kbps 2025-06-21T00:36:19.555767Z DEBUG librespot_audio::fetch: Downloading file 2978267699b331eb59112a72cf099a4bb4af8934 complete 2025-06-21T00:36:46.903562Z TRACE librespot_core::session: Received Ping 2025-06-21T00:36:46.903752Z TRACE librespot_core::session: keep-alive state: PendingPong, timeout in 60.0 2025-06-21T00:36:46.903795Z DEBUG librespot_core::session: Session strong=4 weak=7 ``` ### Host (what you are running `librespot` on): - OS: `OS: Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:26 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8112 arm64` Also in Raspberry PI: - OS: `Linux archpi 6.12.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.20-1+rpt1~bpo12+1 (2025-03-19) aarch64 GNU/Linux` ### Additional context This warning is expected because the format of the received CDN. I will send a request for this.
kerem 2026-02-27 19:31:56 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@edbr-xyz commented on GitHub (Jun 24, 2025):

I'm also experiencing this.

Version: librespot 0.6.0-dev 2c425eb (Built on 2025-06-24, Build ID: EVBNJh5L, Profile: release)

When it happens the song being displayed in Spotify Desktop changes to the next in the queue, but the audio carries on unaffected beyond a minor blip in the audio. You also can't pause the song after this!

librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1750884727-eTR5Sq7N%2F9AEotqV9IXp2gwjvS5xP9FERXX2agtIxbI%3D' from 'https://audio-cf.spotifycdn.com/audio/ce0d46509b0357e0adb970ff91a0022488a089b8?verify=1750884727-eTR5Sq7N%2F9AEotqV9IXp2gwjvS5xP9FERXX2agtIxbI%3D'

I'm in the UK, not sure if this is localised.

<!-- gh-comment-id:3001840509 --> @edbr-xyz commented on GitHub (Jun 24, 2025): I'm also experiencing this. Version: `librespot 0.6.0-dev 2c425eb (Built on 2025-06-24, Build ID: EVBNJh5L, Profile: release)` When it happens the song being displayed in Spotify Desktop changes to the next in the queue, but the audio carries on unaffected beyond a minor blip in the audio. You also can't pause the song after this! ``` librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1750884727-eTR5Sq7N%2F9AEotqV9IXp2gwjvS5xP9FERXX2agtIxbI%3D' from 'https://audio-cf.spotifycdn.com/audio/ce0d46509b0357e0adb970ff91a0022488a089b8?verify=1750884727-eTR5Sq7N%2F9AEotqV9IXp2gwjvS5xP9FERXX2agtIxbI%3D' ``` I'm in the UK, not sure if this is localised.
Author
Owner

@jkazimierczak commented on GitHub (Jun 24, 2025):

Second that. My country is "PL" (Poland), and on librespot 0.6.0 I'm experiencing the same issue. For me it's hit or miss - some songs play, some don't.

A couple of log lines with errors prior and after "parse CDN URL warning":

[2025-06-24T22:56:56Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream
[2025-06-24T22:56:56Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:5MzjQ95rdB2xt9DNa2IzaC")>: ()
[2025-06-24T22:56:56Z INFO  librespot_playback::player] Loading <Remedy (feat. TS Graye)> with Spotify URI <spotify:track:4BYpm1zHvGOxkJAvgfutqg>
[2025-06-24T22:56:56Z ERROR librespot_core::audio_key] error audio key 0 2
[2025-06-24T22:56:56Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error }
[2025-06-24T22:56:56Z WARN  librespot_playback::player] Unable to read cached audio file: Symphonia Decoder Error: end of stream. Trying to download it.
[2025-06-24T22:56:56Z WARN  librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1750892216-z8rNQY6ZZDUvZb7zn9mRrb9yTD1uA37c5dsh8fPrx%2FM%3D' from 'https://audio-cf.spotifycdn.com/audio/2246cb3a128bd1a34ea6c9959d613ecd7b55e3b9?verify=1750892216-z8rNQY6ZZDUvZb7zn9mRrb9yTD1uA37c5dsh8fPrx%2FM%3D'
[2025-06-24T22:56:56Z ERROR librespot_core::audio_key] error audio key 0 2
[2025-06-24T22:56:56Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error }
[2025-06-24T22:57:03Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream
[2025-06-24T23:00:05Z ERROR librespot_connect::spirc] ContextError: Error { kind: InvalidArgument, error: StatusCode(400) }
[2025-06-24T23:00:05Z INFO  librespot_playback::player] Loading <Adieu> with Spotify URI <spotify:track:53Us5C3wTQ2zi6ODWhmHMN>
[2025-06-24T23:00:05Z WARN  librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1750892405-6boPtj25zB4exo%2FsAuzk8Hx4%2FIdR9RGLUpo6wd1XiH8%3D' from 'https://audio-cf.spotifycdn.com/audio/a92810ff4d71ed2758a323d5a0856a2e3aab7784?verify=1750892405-6boPtj25zB4exo%2FsAuzk8Hx4%2FIdR9RGLUpo6wd1XiH8%3D'
[2025-06-24T23:00:06Z INFO  librespot_playback::player] <Adieu> (413333 ms) loaded

In the above case Remedy (feat. TS Graye) didn't play, but Adieu played fine.

Might be unrelated, but for songs that play fine I'm receiving 502 too:

[2025-06-24T23:05:53Z INFO  librespot_playback::player] Loading <Remedy (feat. TS Graye)> with Spotify URI <spotify:track:4BYpm1zHvGOxkJAvgfutqg>
[2025-06-24T23:05:53Z ERROR librespot_connect::spirc] ContextError: Error { kind: Unknown, error: StatusCode(502) }
[2025-06-24T23:05:53Z INFO  librespot_playback::player] <Remedy (feat. TS Graye)> (200689 ms) loaded
<!-- gh-comment-id:3002108899 --> @jkazimierczak commented on GitHub (Jun 24, 2025): Second that. My country is "PL" (Poland), and on librespot 0.6.0 I'm experiencing the same issue. For me it's hit or miss - some songs play, some don't. A couple of log lines with errors prior and after "parse CDN URL warning": ``` [2025-06-24T22:56:56Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream [2025-06-24T22:56:56Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:5MzjQ95rdB2xt9DNa2IzaC")>: () [2025-06-24T22:56:56Z INFO librespot_playback::player] Loading <Remedy (feat. TS Graye)> with Spotify URI <spotify:track:4BYpm1zHvGOxkJAvgfutqg> [2025-06-24T22:56:56Z ERROR librespot_core::audio_key] error audio key 0 2 [2025-06-24T22:56:56Z WARN librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error } [2025-06-24T22:56:56Z WARN librespot_playback::player] Unable to read cached audio file: Symphonia Decoder Error: end of stream. Trying to download it. [2025-06-24T22:56:56Z WARN librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1750892216-z8rNQY6ZZDUvZb7zn9mRrb9yTD1uA37c5dsh8fPrx%2FM%3D' from 'https://audio-cf.spotifycdn.com/audio/2246cb3a128bd1a34ea6c9959d613ecd7b55e3b9?verify=1750892216-z8rNQY6ZZDUvZb7zn9mRrb9yTD1uA37c5dsh8fPrx%2FM%3D' [2025-06-24T22:56:56Z ERROR librespot_core::audio_key] error audio key 0 2 [2025-06-24T22:56:56Z WARN librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error } [2025-06-24T22:57:03Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream [2025-06-24T23:00:05Z ERROR librespot_connect::spirc] ContextError: Error { kind: InvalidArgument, error: StatusCode(400) } [2025-06-24T23:00:05Z INFO librespot_playback::player] Loading <Adieu> with Spotify URI <spotify:track:53Us5C3wTQ2zi6ODWhmHMN> [2025-06-24T23:00:05Z WARN librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1750892405-6boPtj25zB4exo%2FsAuzk8Hx4%2FIdR9RGLUpo6wd1XiH8%3D' from 'https://audio-cf.spotifycdn.com/audio/a92810ff4d71ed2758a323d5a0856a2e3aab7784?verify=1750892405-6boPtj25zB4exo%2FsAuzk8Hx4%2FIdR9RGLUpo6wd1XiH8%3D' [2025-06-24T23:00:06Z INFO librespot_playback::player] <Adieu> (413333 ms) loaded ``` In the above case `Remedy (feat. TS Graye)` didn't play, but `Adieu` played fine. Might be unrelated, but for songs that play fine I'm receiving 502 too: ``` [2025-06-24T23:05:53Z INFO librespot_playback::player] Loading <Remedy (feat. TS Graye)> with Spotify URI <spotify:track:4BYpm1zHvGOxkJAvgfutqg> [2025-06-24T23:05:53Z ERROR librespot_connect::spirc] ContextError: Error { kind: Unknown, error: StatusCode(502) } [2025-06-24T23:05:53Z INFO librespot_playback::player] <Remedy (feat. TS Graye)> (200689 ms) loaded ```
Author
Owner

@richardhapb commented on GitHub (Jun 25, 2025):

Yes, I am experiencing connection closures and playback stops with the same error (spirc and connection issues). I don't think this is related to the CDN; it occurs randomly, every hour or every few hours. I am investigating; the connection might be lost. Perhaps "caching" the next streaming data can improve resilience or another retry pattern. I am new to the project and exploring the core; there may be many key points for this implementation that I am not noticing.

<!-- gh-comment-id:3002261801 --> @richardhapb commented on GitHub (Jun 25, 2025): Yes, I am experiencing connection closures and playback stops with the same error (spirc and connection issues). I don't think this is related to the CDN; it occurs randomly, every hour or every few hours. I am investigating; the connection might be lost. Perhaps "caching" the next streaming data can improve resilience or another retry pattern. I am new to the project and exploring the core; there may be many key points for this implementation that I am not noticing.
Author
Owner

@photovoltex commented on GitHub (Jun 26, 2025):

Fixed with #1513

<!-- gh-comment-id:3008924706 --> @photovoltex commented on GitHub (Jun 26, 2025): Fixed with #1513
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/librespot#683
No description provided.