vosmiic / jellyfin-ani-sync

Synchronize anime watch status between Jellyfin and anime tracking sites.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API test returns 401

46620 opened this issue · comments

commented

Describe the bug
Every time I try to test the API before configuring a client it returns a 401 (blank page in Firefox).

Logs

...
jellyfin  | [22:18:40] [INF] [28] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Added Notifier Completed after 0 minute(s) and 0 seconds
jellyfin  | [22:18:48] [INF] [34] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
jellyfin  | [22:19:10] [INF] [34] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Added Notifier Completed after 0 minute(s) and 0 seconds
...

To Reproduce
Steps to reproduce the behavior:

  1. Set API URL
  2. Set Callback Redirect URL
  3. Save
  4. Test API
  5. See 401 error

Expected behavior
I should see a "This is the correct URL."

Screenshots
image
image
image

Desktop (please complete the following information):

  • Browser: Firefox & Chrome
  • Jellyfin version 10.9.11
  • Plugin version 3.4.0.0

Additional context
I tried using the machines local IP, the docker container IP, and the domain IP. They all give a 401.

I am able to replicate this, presume this was caused by the recent security update and I must have missed adding the ignore auth attribute on this endpoint.
I'll create a hotfix for this, should be simple to fix.
Thanks for reporting it.

Sorry for the duplicate post @vosmiic I wasn't sure if it was okay to hijack this one with my issue!
Appreciate you following up! <3

No worries @SadPepeIRL
Thanks for implementing the fix @46620, it will go into a beta build for a bit so if you would like to use a version of the plugin with this fix you will have to setup your Jellyfin with the beta release repo.