spotify-dl icon indicating copy to clipboard operation
spotify-dl copied to clipboard

Download failed

Open MASUMCHAUDHURY opened this issue 5 months ago • 11 comments

Unable to download songs

MASUMCHAUDHURY avatar Sep 24 '25 10:09 MASUMCHAUDHURY

I managed to get it to work by using a fork updating one of the dependencies at https://github.com/GuillemCastro/spotify-dl/pull/54

Install with: cargo install --git https://github.com/flxo/spotify-dl.git --branch bump-librespot

sonalys avatar Oct 24 '25 07:10 sonalys

I managed to get it to work by using a fork updating one of the dependencies at #54

Install with: cargo install --git https://github.com/flxo/spotify-dl.git --branch bump-librespot

I discovered this yesterday. It was working fine. Today the dowloads started failing. Did I hit some kind of limit? Or Spotify patched it?

vogelcodes avatar Nov 06 '25 23:11 vogelcodes

Be careful with downloading huge batches guys, I noticed a lot of songs were coming corrupted, so test your files first. I would also avoid using parallelism > 1, because spotify sent me a "unusual activity" notification and logged me out from my device.

sonalys avatar Nov 07 '25 09:11 sonalys

same here : no more download (last successfull download 5th of november) even after cargo install --git https://github.com/flxo/spotify-dl.git --branch bump-librespot at command spotify-dl https://open.spotify.com/track/6nXjKNMEpzA5GF2dHFLt7O?si=10ad2b74426148a1 the log ~/.spotify-d/spotify-dl.log file show

2025-11-07T13:33:19.275654Z  INFO spotify_dl::track: Parsed URI: Err(Error { kind: InvalidArgument, error: InvalidFormat })
2025-11-07T13:33:20.450959Z  INFO download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Downloading track: "Kafka Was Correct"
2025-11-07T13:33:20.535896Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:20.554294Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:20.554431Z  WARN spotify_dl::stream::stream: Attempt 1 to load track SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") failed: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:20.554586Z  WARN download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Retrying download, attempt 1 of 3: Roy M
ontgomery - Kafka Was Correct
2025-11-07T13:33:30.556154Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:30.580178Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:30.580248Z  WARN spotify_dl::stream::stream: Attempt 2 to load track SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") failed: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:30.580325Z  WARN download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Retrying download, attempt 2 of 3: Roy M
ontgomery - Kafka Was Correct
2025-11-07T13:33:50.581696Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:50.604214Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:50.604313Z  WARN spotify_dl::stream::stream: Attempt 3 to load track SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") failed: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:50.604460Z  WARN download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Retrying download, attempt 3 of 3: Roy M
ontgomery - Kafka Was Correct
2025-11-07T13:34:20.605565Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:34:20.636089Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:34:20.636170Z ERROR spotify_dl::stream::stream: Failed to load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O"), error: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:34:20.636882Z ERROR download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Error while streaming track: LoadError("
Failed to load track: SpotifyId(\"spotify:track:6nXjKNMEpzA5GF2dHFLt7O\")")
2025-11-07T13:34:20.636957Z ERROR download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Failed to download Roy Montgomery - Kafk
a Was Correct: Streaming error: LoadError("Failed to load track: SpotifyId(\"spotify:track:6nXjKNMEpzA5GF2dHFLt7O\")")
2025-11-07T13:34:20.639462Z  WARN spotify_dl::stream::stream: Attempt 3 to load track SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") failed: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:34:20.639511Z ERROR spotify_dl::stream::stream: Failed to send event: SendError { .. }

loloster avatar Nov 07 '25 13:11 loloster

same here : no more download (last successfull download 5th of november) even after cargo install --git https://github.com/flxo/spotify-dl.git --branch bump-librespot at command spotify-dl https://open.spotify.com/track/6nXjKNMEpzA5GF2dHFLt7O?si=10ad2b74426148a1 the log ~/.spotify-d/spotify-dl.log file show

2025-11-07T13:33:19.275654Z  INFO spotify_dl::track: Parsed URI: Err(Error { kind: InvalidArgument, error: InvalidFormat })
2025-11-07T13:33:20.450959Z  INFO download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Downloading track: "Kafka Was Correct"
2025-11-07T13:33:20.535896Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:20.554294Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:20.554431Z  WARN spotify_dl::stream::stream: Attempt 1 to load track SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") failed: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:20.554586Z  WARN download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Retrying download, attempt 1 of 3: Roy M
ontgomery - Kafka Was Correct
2025-11-07T13:33:30.556154Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:30.580178Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:30.580248Z  WARN spotify_dl::stream::stream: Attempt 2 to load track SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") failed: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:30.580325Z  WARN download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Retrying download, attempt 2 of 3: Roy M
ontgomery - Kafka Was Correct
2025-11-07T13:33:50.581696Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:50.604214Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:50.604313Z  WARN spotify_dl::stream::stream: Attempt 3 to load track SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") failed: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:33:50.604460Z  WARN download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Retrying download, attempt 3 of 3: Roy M
ontgomery - Kafka Was Correct
2025-11-07T13:34:20.605565Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:34:20.636089Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:34:20.636170Z ERROR spotify_dl::stream::stream: Failed to load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O"), error: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:34:20.636882Z ERROR download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Error while streaming track: LoadError("
Failed to load track: SpotifyId(\"spotify:track:6nXjKNMEpzA5GF2dHFLt7O\")")
2025-11-07T13:34:20.636957Z ERROR download_track{track=Track { id: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") } options=DownloadOptions { destination: "/tmp", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Failed to download Roy Montgomery - Kafk
a Was Correct: Streaming error: LoadError("Failed to load track: SpotifyId(\"spotify:track:6nXjKNMEpzA5GF2dHFLt7O\")")
2025-11-07T13:34:20.639462Z  WARN spotify_dl::stream::stream: Attempt 3 to load track SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O") failed: Could not load track: SpotifyId("spotify:track:6nXjKNMEpzA5GF2dHFLt7O")
2025-11-07T13:34:20.639511Z ERROR spotify_dl::stream::stream: Failed to send event: SendError { .. }

Try deleting the spotify_dl cache folders and temp folders on your machine, I had a similar issue, probably some invalid metadata

sonalys avatar Nov 07 '25 15:11 sonalys

Try deleting the spotify_dl cache folders and temp folders on your machine, I had a similar issue, probably some invalid metadata

could not find so far a cache folder for spotify-dl. any hints ?

tried on two computer outside of /tmp folder => same error in log file: Track is unavailable

here log file with the debug version of spotify-dl:

RUST_BACKTRACE=full ~/spotify-dl/spotify-dl/target/debug/spotify-dl https://open.spotify.com/track/6IIcvtmuGpWIasqOpyGlyY

2025-11-07T19:06:16.061603Z  INFO spotify_dl::track: Parsed URI: Err(Error { kind: InvalidArgument, error: InvalidFormat })
2025-11-07T19:06:16.259811Z  INFO download_track{track=Track { id: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") } options=DownloadOptions { destination: "/home/nzeerorg/Music/Archie Bell & The Drells/Tighten Up", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Downloading track: "Tighten Up, Pt. 1"
2025-11-07T19:06:16.320388Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:06:16.343238Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:06:16.343627Z  WARN spotify_dl::stream::stream: Attempt 1 to load track SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") failed: Could not load track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:06:16.343859Z  WARN download_track{track=Track { id: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") } options=DownloadOptions { destination: "/home/nzeerorg/Music/Archie Bell & The Drells/Tighten Up", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Retrying download, attempt 1 of 3: Archie Bell & The Drells - Tighten Up, Pt. 1
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------2025/11/07 20:06:21-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2025-11-07T19:06:26.345196Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:06:26.361029Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:06:26.361395Z  WARN spotify_dl::stream::stream: Attempt 2 to load track SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") failed: Could not load track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:06:26.361657Z  WARN download_track{track=Track { id: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") } options=DownloadOptions { destination: "/home/nzeerorg/Music/Archie Bell & The Drells/Tighten Up", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Retrying download, attempt 2 of 3: Archie Bell & The Drells - Tighten Up, Pt. 1
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------2025/11/07 20:06:30-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2025-11-07T19:06:46.362878Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:06:46.380769Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:06:46.381159Z  WARN spotify_dl::stream::stream: Attempt 3 to load track SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") failed: Could not load track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:06:46.381450Z  WARN download_track{track=Track { id: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") } options=DownloadOptions { destination: "/home/nzeerorg/Music/Archie Bell & The Drells/Tighten Up", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Retrying download, attempt 3 of 3: Archie Bell & The Drells - Tighten Up, Pt. 1
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------2025/11/07 20:06:47-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2025-11-07T19:07:16.382412Z  INFO spotify_dl::stream::stream: Loading track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:07:16.399609Z  INFO spotify_dl::stream::stream: Track is unavailable: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:07:16.399934Z ERROR spotify_dl::stream::stream: Failed to load track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY"), error: Could not load track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")

Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.98/src/backtrace.rs:27:14
   1: spotify_dl::stream::stream::Stream::load::{{closure}}
             at /home/nzeerorg/spotify-dl/spotify-dl/src/stream/stream.rs:126:32
   2: spotify_dl::stream::stream::Stream::stream::{{closure}}::{{closure}}::{{closure}}::{{closure}}
             at /home/nzeerorg/spotify-dl/spotify-dl/src/stream/stream.rs:45:83
   3: <tryhard::RetryFuture<F,Fut,B,OnRetryT> as core::future::future::Future>::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tryhard-0.5.2/src/lib.rs:578:70
   4: spotify_dl::stream::stream::Stream::stream::{{closure}}::{{closure}}
             at /home/nzeerorg/spotify-dl/spotify-dl/src/stream/stream.rs:65:18
   5: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/core.rs:365:17
   6: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/loom/std/unsafe_cell.rs:16:9
   7: tokio::runtime::task::core::Core<T,S>::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/core.rs:354:13
   8: tokio::runtime::task::harness::poll_future::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/harness.rs:535:19
   9: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panic/unwind_safe.rs:272:9
  10: std::panicking::try::do_call
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:589:40
  11: __rust_try
  12: std::panicking::try
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:552:19
  13: std::panic::catch_unwind
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panic.rs:359:14
  14: tokio::runtime::task::harness::poll_future
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/harness.rs:523:18
  15: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/harness.rs:210:27
  16: tokio::runtime::task::harness::Harness<T,S>::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/harness.rs:155:15
  17: tokio::runtime::task::raw::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/raw.rs:325:5
  18: tokio::runtime::task::raw::RawTask::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/raw.rs:255:18
  19: tokio::runtime::task::LocalNotified<S>::run
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/mod.rs:509:9
  20: tokio::runtime::scheduler::multi_thread::worker::Context::run_task::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/multi_thread/worker.rs:600:13
  21: tokio::task::coop::with_budget
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/task/coop/mod.rs:167:5
  22: tokio::task::coop::budget
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/task/coop/mod.rs:133:5
  23: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/multi_thread/worker.rs:591:9
  24: tokio::runtime::scheduler::multi_thread::worker::Context::run
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/multi_thread/worker.rs:539:24
  25: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/multi_thread/worker.rs:504:21
  26: tokio::runtime::context::scoped::Scoped<T>::set
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context/scoped.rs:40:9
  27: tokio::runtime::context::set_scheduler::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context.rs:176:26
  28: std::thread::local::LocalKey<T>::try_with
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/thread/local.rs:315:12
  29: std::thread::local::LocalKey<T>::with
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/thread/local.rs:279:15
  30: tokio::runtime::context::set_scheduler
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context.rs:176:9
  31: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/multi_thread/worker.rs:499:9
  32: tokio::runtime::context::runtime::enter_runtime
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context/runtime.rs:65:16
  33: tokio::runtime::scheduler::multi_thread::worker::run
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/multi_thread/worker.rs:491:5
  34: tokio::runtime::scheduler::multi_thread::worker::Launch::launch::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/multi_thread/worker.rs:457:45
  35: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/blocking/task.rs:42:21
  36: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/core.rs:365:17
  37: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/loom/std/unsafe_cell.rs:16:9
  38: tokio::runtime::task::core::Core<T,S>::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/core.rs:354:13
  39: tokio::runtime::task::harness::poll_future::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/harness.rs:535:19
  40: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panic/unwind_safe.rs:272:9
  41: std::panicking::try::do_call
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:589:40
  42: __rust_try
  43: std::panicking::try
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:552:19
  44: std::panic::catch_unwind
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panic.rs:359:14
  45: tokio::runtime::task::harness::poll_future
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/harness.rs:523:18
  46: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/harness.rs:210:27
  47: tokio::runtime::task::harness::Harness<T,S>::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/harness.rs:155:15
  48: tokio::runtime::task::raw::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/raw.rs:325:5
  49: tokio::runtime::task::raw::RawTask::poll
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/raw.rs:255:18
  50: tokio::runtime::task::UnownedTask<S>::run
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/task/mod.rs:546:9
  51: tokio::runtime::blocking::pool::Task::run
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/blocking/pool.rs:161:9
  52: tokio::runtime::blocking::pool::Inner::run
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/blocking/pool.rs:516:17
  53: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
             at /home/nzeerorg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/blocking/pool.rs:474:13
  54: std::sys::backtrace::__rust_begin_short_backtrace
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/sys/backtrace.rs:152:18
  55: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/thread/mod.rs:559:17
  56: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panic/unwind_safe.rs:272:9
  57: std::panicking::try::do_call
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:589:40
  58: __rust_try
  59: std::panicking::try
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:552:19
  60: std::panic::catch_unwind
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panic.rs:359:14
  61: std::thread::Builder::spawn_unchecked_::{{closure}}
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/thread/mod.rs:557:30
  62: core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/ops/function.rs:250:5
  63: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/alloc/src/boxed.rs:1966:9
  64: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/alloc/src/boxed.rs:1966:9
  65: std::sys::pal::unix::thread::Thread::new::thread_start
             at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/sys/pal/unix/thread.rs:97:17
  66: start_thread
             at /build/glibc-B3wQXB/glibc-2.31/nptl/pthread_create.c:477:8
  67: clone  
             at /build/glibc-B3wQXB/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95:0
2025-11-07T19:07:16.612918Z ERROR download_track{track=Track { id: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") } options=DownloadOptions { destination: "/home/nzeerorg/Music/Archie Bell & The Drells/Tighten Up", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Error while streaming track: LoadError("Failed to load track: SpotifyId(\"spotify:track:6IIcvtmuGpWIasqOpyGlyY\")")
2025-11-07T19:07:16.613178Z ERROR download_track{track=Track { id: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") } options=DownloadOptions { destination: "/home/nzeerorg/Music/Archie Bell & The Drells/Tighten Up", parallel: 5, format: Flac, force: false }}: spotify_dl::download: Failed to download Archie Bell & The Drells - Tighten Up, Pt. 1: Streaming error: LoadError("Failed to load track: SpotifyId(\"spotify:track:6IIcvtmuGpWIasqOpyGlyY\")")
2025-11-07T19:07:16.613586Z  WARN spotify_dl::stream::stream: Attempt 3 to load track SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY") failed: Could not load track: SpotifyId("spotify:track:6IIcvtmuGpWIasqOpyGlyY")
2025-11-07T19:07:16.613634Z ERROR spotify_dl::stream::stream: Failed to send event: SendError { .. }

loloster avatar Nov 07 '25 19:11 loloster

The current issues are likely caused by metadata endpoint for spotify changing a couple days ago. fixes should be in librespot soon https://github.com/librespot-org/librespot/discussions/1621

k2052 avatar Nov 07 '25 20:11 k2052

The current issues are likely caused by metadata endpoint for spotify changing a couple days ago. fixes should be in librespot soon librespot-org/librespot#1621

Seems that in order to use librespot Fix #1622 one has to fix (at least) src/tracks.rs as SpotifyItemType has been removed from librespot::core

loloster avatar Nov 07 '25 21:11 loloster

still doesn't work on me, i tried this. any ideas?

I managed to get it to work by using a fork updating one of the dependencies at #54

Install with: cargo install --git https://github.com/flxo/spotify-dl.git --branch bump-librespot

fabifuu avatar Nov 11 '25 16:11 fabifuu

Quick'n very dirty hack to download uri/url Tracks only https://github.com/loloster/spotify-dl/tree/bump-librespot-0.8.0

loloster avatar Nov 11 '25 20:11 loloster

it seems to work again using librespot dev branch (aka preparation for version 0.8.0)

Install with: cargo install --git https://github.com/loloster/spotify-dl.git --branch bump-librespot-0.8.0

If wanted by maintainers, I can create a PR for that fix.

loloster avatar Nov 12 '25 15:11 loloster

I tried that and I could not make it work. Anyone having success?

adauguet avatar Dec 03 '25 14:12 adauguet