Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: TRPCClientError: Request failed with status code 401 #2349

Open
suds-mcduff opened this issue Feb 17, 2025 · 4 comments
Open

bug: TRPCClientError: Request failed with status code 401 #2349

suds-mcduff opened this issue Feb 17, 2025 · 4 comments

Comments

@suds-mcduff
Copy link

Describe the bug

'Current media streams' widget not working for Jellyfin.

I have created jellyfin as a media stream widget, and Homarr test connection is successful. Additionally, I can ping my jellyfin instance through the container's console. However, when adding the widget to a homepage, it cannot connect and gives the error "TRPCClientError: Request failed with status code 401".

Steps to reproduce

Goto management -> Integrations -> New Integration -> Jellyfin -> Add URL -> Add API key -> Test and save (successful)

Goto desired board -> edit -> Add -> New Item -> Current Media Server Streams -> Select blank widget -> Edit -> Select Jellyfin -> Save changes -> See error

Impact

Low impact

Additional information

No response

Version

1.6.0

Installation method

Portainer

Browser

Firefox

@manuel-rw
Copy link
Member

Did you allow the API token to access the data?

@suds-mcduff
Copy link
Author

I can't see any permissions options in Jellyfin when creating an API token. It's just creates one.

@manuel-rw
Copy link
Member

  1. What Jellyfin version do you use?
  2. Do you use any reverse proxy, VPN or similar for Jellyfin?
  3. What is the Jellyfin URL you entered in Homarr? Remove your domain if it is public to project your privacy.
  4. Any errors / warnings in the log of Homarr?
  5. Any errors / warnings in the log of Jellyfin?

@suds-mcduff
Copy link
Author

Hello

  1. Running 10.10.3.0 thanks for making me check, will update to latest 10.10.6
  2. Yes I am using cloudflare as a reverse proxy, my jellyfin instance is accessible over the internet
  3. I'm not using the public domain for the Homarr integration, instead I've given Homarr the address to my type A dns record. It is of the form http://stream.ext.mgmt.com:8096 (note not the real URL, and I can access Jellyfin through this url just fine). Whereas the public domain is like https://stream.domain.com. The public domain has a CNAME record that directs stream.domain.com to a Traefik LXC. What is strange to me is that when adding jellyfin and jellyseerr integration on Homarr with the url of the form stream.ext.mgmt.com:port it actually tests find and successfully adds. It just doesn't work when adding that integration to a homepage. What prompted me to make this bug report, is that the exact same URL works using gethomepage, and I can see active streams.
  4. I can't seem to get into the logs via the UI, I get the error TRPCClientError: UNAUTHORIZED
  5. Can't see any jellyfin logs lines related to Homarr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants