Skip to content

Conversation

@ggfevans
Copy link
Contributor

  • Probe common basepaths ('', '/lidarr') on startup to find working URL
  • Auto-update lidarrUrl when basepath is detected
  • Detect HTML responses and throw helpful error suggesting basepath fix
  • Add lidarrUrl and lidarrBasepathDetected to health endpoint
  • Strip trailing slashes from configured URL

Helps users who configure LIDARR_URL without the basepath suffix, which causes cryptic frontend errors when API returns HTML instead of JSON.

Addresses #11

- Probe common basepaths ('', '/lidarr') on startup to find working URL
- Auto-update lidarrUrl when basepath is detected
- Detect HTML responses and throw helpful error suggesting basepath fix
- Add lidarrUrl and lidarrBasepathDetected to health endpoint
- Strip trailing slashes from configured URL

Helps users who configure LIDARR_URL without the basepath suffix,
which causes cryptic frontend errors when API returns HTML instead of JSON.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@lklynet lklynet merged commit 7338f24 into lklynet:main Jan 21, 2026
2 checks passed
@ggfevans ggfevans deleted the lidarr-basepath-detection branch January 21, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants