mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #2192] [Bug]: Server Error when adding podcast RSS feed with Soundcast.io tracking URLs #1118
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#1118
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 @deafcatsteam on GitHub (Jan 10, 2026).
Original GitHub issue: https://github.com/koel/koel/issues/2192
Originally assigned to: @phanan on GitHub.
Read the Troubleshooting guide.
Reproduction steps
Expected behavior
The podcast should be added successfully, or Koel should display a meaningful error message explaining why the feed cannot be added.
Actual behavior
Koel returns a generic "Server Error" with no explanation.
The RSS feed is valid (passes all XML/RSS tests on Cast Feed Validator), but the podcast uses Soundcast.io as an intermediary tracking service for audio analytics.
Episode media URLs are not direct MP3 links but go through Soundcast's API with dynamic parameters:
https://api.soundcast.io/v1/stitch/7BDAD77D/?apiKey=... &ip=...&ua=... &podcastUrl=...
Cast Feed Validator reports:
These URLs work fine in standard podcast players (Apple Podcasts, Spotify, etc.) but fail when Koel tries to fetch/validate them server-side.
Logs
[previous exception] [object] (TypeError(code: 0): PhanAn\Poddle\Values\Channel::__construct(): Argument #1 ($url) must be of type string, null given, called in /opt/koel/vendor/phanan/poddle/src/Poddle.php on line 55 at /opt/koel/vendor/phanan/poddle/src/Values/Channel.php:9)
[stacktrace]
#0 /opt/koel/vendor/phanan/poddle/src/Poddle.php(55): PhanAn\Poddle\Values\Channel->__construct()
#1 /opt/koel/app/Services/PodcastService. php(58): PhanAn\Poddle\Poddle->getChannel()
#2 /opt/koel/app/Http/Controllers/API/Podcast/PodcastController.php(39): App\Services\PodcastService->addPodcast()
Koel version
Koel v8.2.0 Community Edition
How did you install Koel?
Other (please specify in Additional information)
Additional information
Installed with Script Helper
@deafcatsteam commented on GitHub (Jan 10, 2026):
Root Cause Analysis
I found the bug in the Poddle library.
In
src/Poddle.phplines 55-56:The
getSoleValue()method can returnnull, butChannel::__construct()expects a non-nullablestring $urlinsrc/Values/Channel.phpline 10:Proposed Fix
Make
$urlnullable insrc/Values/Channel.php, similar to how$linkis already nullable:This is consistent with the existing approach for
$link(README notes: "Although required by the standard,linkisn't supplied by all feeds").The fix should be applied in the upstream library phanan/poddle.
@phanan commented on GitHub (Jan 11, 2026):
Thanks for reporting the bug!