Files
sailarr-installer/setup
JaviPege a2b1c8c66e Fix critical API authentication bug - API key not being expanded
**Root Cause:**
The curl command was using single quotes around the X-Api-Key header:
  -H 'X-Api-Key: $api_key'

In bash, single quotes prevent variable expansion, so the literal string
"$api_key" was being sent instead of the actual API key value.

**Fix:**
Changed to double quotes to allow variable expansion:
  -H "X-Api-Key: $api_key"

This explains the HTTP 401 errors when adding applications to Prowlarr
and potentially other API operations. The API was receiving an invalid
API key (literally the string "$api_key").

**Testing:**
This should fix:
- Adding Radarr/Sonarr applications to Prowlarr (HTTP 401)
- Any other API operations that were silently failing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 12:12:02 +02:00
..