PodFetch icon indicating copy to clipboard operation
PodFetch copied to clipboard

Error when refreshing a podcast

Open bayang opened this issue 2 months ago • 0 comments

Describe the bug

When I click refresh on a podcast an error is logged.

repro : add "dans le secret des dieux" podcast -> https://creators.spotify.com/pod/profile/danslesecretdesdieux/ Then click refresh, no new episode appear in the UI. Look in the logs :

2025-11-13T15:54:50 ℹ️ - Refreshing podcast: DANS LE SECRET DES DIEUX
podfetch           | 2025-11-13T15:54:50.795118814Z 2025-11-13T15:54:50 ℹ️ - Succesfully refreshed podcast.
podfetch           | 2025-11-13T15:54:55.703400788Z 2025-11-13T15:54:55 ❌ - Error during reqwest: error sending request for url (https://anchor.fm/s/40e10d30/podcast/rss)
podfetch           | 2025-11-13T15:54:55.707880441Z 2025-11-13T15:54:55 ❌ - Error refreshing podcast: Initial error: Bad Request: Error requesting resource from server
podfetch           | 2025-11-13T15:54:55.707919899Z Error context:
podfetch           | 2025-11-13T15:54:55.707926499Z    0: <podfetch::utils::error::CustomError as core::convert::From<podfetch::utils::error::CustomErrorInner>>::from
podfetch           | 2025-11-13T15:54:55.707933660Z              at /home/rust/src/src/utils/error.rs:135:34
podfetch           | 2025-11-13T15:54:55.707939618Z    1: <T as core::convert::Into<U>>::into
podfetch           | 2025-11-13T15:54:55.707945367Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/convert/mod.rs:784:9
podfetch           | 2025-11-13T15:54:55.707951016Z    2: podfetch::utils::error::map_reqwest_error
podfetch           | 2025-11-13T15:54:55.707956614Z              at /home/rust/src/src/utils/error.rs:401:6
podfetch           | 2025-11-13T15:54:55.707962263Z    3: core::ops::function::FnOnce::call_once
podfetch           | 2025-11-13T15:54:55.707967640Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5
podfetch           | 2025-11-13T15:54:55.707973279Z    4: core::result::Result<T,E>::map_err
podfetch           | 2025-11-13T15:54:55.707978998Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/result.rs:914:27
podfetch           | 2025-11-13T15:54:55.708003745Z    5: podfetch::service::podcast_episode_service::PodcastEpisodeService::do_request_to_podcast_server
podfetch           | 2025-11-13T15:54:55.708009093Z              at /home/rust/src/src/service/podcast_episode_service.rs:484:14
podfetch           | 2025-11-13T15:54:55.708013970Z    6: podfetch::service::podcast_episode_service::PodcastEpisodeService::insert_podcast_episodes
podfetch           | 2025-11-13T15:54:55.708018868Z              at /home/rust/src/src/service/podcast_episode_service.rs:112:13
podfetch           | 2025-11-13T15:54:55.708023595Z    7: podfetch::service::rust_service::PodcastService::refresh_podcast
podfetch           | 2025-11-13T15:54:55.708028572Z              at /home/rust/src/src/service/rust_service.rs:207:9
podfetch           | 2025-11-13T15:54:55.708033479Z    8: podfetch::controllers::podcast_controller::download_podcast::{{closure}}::{{closure}}
podfetch           | 2025-11-13T15:54:55.708038237Z              at /home/rust/src/src/controllers/podcast_controller.rs:470:15
podfetch           | 2025-11-13T15:54:55.708042944Z    9: std::sys::backtrace::__rust_begin_short_backtrace
podfetch           | 2025-11-13T15:54:55.708047781Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:158:18
podfetch           | 2025-11-13T15:54:55.708052928Z   10: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}
podfetch           | 2025-11-13T15:54:55.708057966Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:559:17
podfetch           | 2025-11-13T15:54:55.708062714Z   11: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
podfetch           | 2025-11-13T15:54:55.708067961Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9
podfetch           | 2025-11-13T15:54:55.708074100Z   12: std::panicking::catch_unwind::do_call
podfetch           | 2025-11-13T15:54:55.708079368Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40
podfetch           | 2025-11-13T15:54:55.708084426Z   13: std::panicking::catch_unwind
podfetch           | 2025-11-13T15:54:55.708088993Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19
podfetch           | 2025-11-13T15:54:55.708093770Z   14: std::panic::catch_unwind
podfetch           | 2025-11-13T15:54:55.708098708Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14
podfetch           | 2025-11-13T15:54:55.708103975Z   15: std::thread::Builder::spawn_unchecked_::{{closure}}
podfetch           | 2025-11-13T15:54:55.708108723Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:557:30
podfetch           | 2025-11-13T15:54:55.708113599Z   16: core::ops::function::FnOnce::call_once{{vtable.shim}}
podfetch           | 2025-11-13T15:54:55.708118377Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5
podfetch           | 2025-11-13T15:54:55.708123445Z   17: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
podfetch           | 2025-11-13T15:54:55.708128993Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1971:9
podfetch           | 2025-11-13T15:54:55.708133859Z   18: std::sys::pal::unix::thread::Thread::new::thread_start
podfetch           | 2025-11-13T15:54:55.708143994Z              at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/pal/unix/thread.rs:107:17
podfetch           | 2025-11-13T15:54:55.708149232Z
podfetch           | 2025-11-13T15:54:55.708154119Z

Reproduction

see description

System Info

ubuntu 20.04 server, using latest docker image (release 4.9.0)

Used Package Manager

n/a

Validations

  • [x] Follow our Code of Conduct
  • [x] Read the Contributing Guide.
  • [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [x] The provided reproduction is a minimal reproducible of the bug.

bayang avatar Nov 13 '25 16:11 bayang