buildarr / buildarr-jellyseerr

Jellyseerr media library request manager plugin for Sonarr
GNU General Public License v3.0
1 stars 2 forks source link

Issue With Jellyfin URL #33

Closed AidanHilt closed 4 months ago

AidanHilt commented 4 months ago

Hi! I'm trying to set up Buildarr to automatically initialize Jellyseerr, and I'm running into an issue. When I try to add the Jellyfin authentication, Buildarr reports this error:

buildarr_jellyseerr.exceptions.JellyseerrAPIError: Unexpected response with status code 404 from from 'POST http://jellyseerr:80/api/v1/auth/jellyfin': INVALID_URL

The logs for Jellyseerr have the following entry:

2024-06-20T05:49:38.369Z [debug][Jellyfin API]: Failed to authenticate with headers: Request failed with status code 404 {"ip":"192.168.0.95"} 
2024-06-20T05:49:38.390Z [error][Auth]: The provided Jellyfin is invalid or the server is not reachable. {"error":"INVALID_URL","status":404,"hostname":"http://jellyfin:80/emby:undefinedundefined"}

This is my Jellyfin configuration block in buildarr.yml:

        jellyfin:
          server_url: "jellyfin:80/emby"
          username: "admin"
          password: "-------------"
          email_address: someone@somewhere.com
          external_url: null
          libraries:
          - Movies

All of these are running in Docker containers in a local Kubernetes cluster. It looks to me like something is attempting to "turn" the server_url field into a URL, since it's adding the 'http://' protocol. If you don't have time to look into this, do you have any idea where this might be happening?

AidanHilt commented 4 months ago

Turns out this wasn't a buildarr thing, but due to a change in how the Jellyseerr API works. The change can be found here: https://github.com/Fallenbagel/jellyseerr/blob/4fddf8908444d8568dcebf84af7a1e46b4c3e474/server/routes/auth.ts#L219. I'll go ahead and close this, then fork and open a PR.