Skip to content

Commit ed89cbd

Browse files
committed
fix(seerr): check /api/v1/status instead of / for readiness
The root URL returns HTML before Seerr finishes initializing, causing Radarr/Sonarr addition to fail. Now hits /api/v1/status which only succeeds after full init, plus adds a 3s settle delay and a ready log message for consistency with other services.
1 parent d31a541 commit ed89cbd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

setup.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,10 +2030,13 @@ configure_seerr() {
20302030
local max_wait=60 elapsed=0 interval=3
20312031
local spin_chars='⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏'
20322032

2033-
# Wait for Seerr to be ready
2033+
# Wait for Seerr API to be ready (hitting / returns HTML before init completes)
20342034
while [[ $elapsed -lt $max_wait ]]; do
2035-
if curl -sf --connect-timeout 3 --max-time 10 -o /dev/null "${seerr_url}" 2>/dev/null; then
2035+
if curl -sf --connect-timeout 3 --max-time 10 -o /dev/null "${seerr_url}/api/v1/status" 2>/dev/null; then
20362036
printf "\r %-50s\n" ""
2037+
log_info "Seerr is ready. (${elapsed}s)"
2038+
# Give Seerr a moment to fully initialize after API responds
2039+
sleep 3
20372040
break
20382041
fi
20392042
printf "\r %s Waiting for Seerr... %ds/%ds" "${spin_chars:elapsed/interval%${#spin_chars}:1}" "$elapsed" "$max_wait"

0 commit comments

Comments
 (0)