mirror of
https://github.com/JaviPege/sailarr-installer.git
synced 2026-01-06 04:39:31 -06:00
**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>