Closed slmnemo closed 6 months ago
More log info. It also fails to create an api link for anilist, causing this error when I attempt it.
[2024-03-18 08:05:17.248 +00:00] [ERR] [56] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/AniSync/user".
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable1 source, Func
2 predicate, Boolean& found)
at jellyfin_ani_sync.Api.AuthApiCall.AuthenticatedApiCall(ApiName provider, CallType callType, String url, FormUrlEncodedContent formUrlEncodedContent, StringContent stringContent, Dictionary2 requestHeaders) at jellyfin_ani_sync.Helpers.GraphQlHelper.AuthenticatedRequest(IHttpClientFactory httpClientFactory, ILoggerFactory loggerFactory, IServerApplicationHost serverApplicationHost, IHttpContextAccessor httpContextAccessor, UserConfig userConfig, String query, ApiName provider, Dictionary
2 variables)
at jellyfin_ani_sync.Api.Anilist.AniListApiCalls.GetCurrentUser()
at jellyfin_ani_sync.Api.AniSyncController.GetUser(ApiName apiName, String userId)
at lambda_method1628(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.
Normally when you get the One or more validation errors occurred.
error it includes at least one error description, could you post the entire returned JSON (removing any private information it contains if applicable)?
here's the whole JSON
{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-202d16469baae8cfaea3b4ecbaaf2dfb-4d34275b1beb51e7-00","errors":{"code":["The code field is required."]}}
So that means that the code field isn't being supplied. Your URL should contain the code
query parameter. What provider are you attempting to authenticate with?
I would advise following the wiki instructions if you haven't already done so: https://github.com/vosmiic/jellyfin-ani-sync/wiki/Providers-Setup
I'm incredibly silly and have been visiting the authCallback page instead of the apiUrlTest page. I am so sorry for the issue.
No worries, if you hit into any trouble using the plugin feel free to create an issue/discussion 👍
Describe the bug Using the official docker image for jellyfin (jellyfin/jellyfin) and accessing the generated auto callback URL results in a 400 error
One or more validation errors occurred.
. Expected behavior is seeing the message for a correct callback URL.Logs Log is very large, but repeats the line [2024-03-18 05:35:00.197 +00:00] [INF] [11] Jellyfin.Api.Auth.CustomAuthenticationHandler: "CustomAuthentication" was not authenticated. Failure message: "Invalid token." [2024-03-18 05:35:00.198 +00:00] [INF] [11] Jellyfin.Api.Auth.CustomAuthenticationHandler: "CustomAuthentication" was not authenticated. Failure message: "Invalid token." [2024-03-18 05:35:00.201 +00:00] [INF] [11] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was challenged.
To Reproduce Run jellyfin using docker-compose on Ubuntu 22.04 with NVIDIA support. Install Ani-Sync. Try to access auth callback URL.
Expected behavior Accessing auth callback URL results in the "This is the correct page" response.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): Jellyfin 10.8.13 Plugin Version 3.0 Firefox