Comments (13)
It's for the token so I can sync my anilist data when I watch sum I authorized my user then tried the link didn't work then tried authorizimg again then restarted the server then did the link but kept giving me error even I copied the link into the search bar for the anilist provider
from jellyfin-ani-sync.
What step are you up to?
What provider are you attempting to authenticate with?
Did you read the guide?
Do you have any errors in the Jellyfin logs related to this plugin?
I can't really help with such limited information, the authentication process could be failing at multiple points.
from jellyfin-ani-sync.
When navigating to the generated link did it simply not load or did it return an error?
I would confirm that you entered the correct client ID and secret, as they are necessary to generate a correct link
from jellyfin-ani-sync.
this is wat it gives me
Edit- im very confused on this now after reading more on the wiki
from jellyfin-ani-sync.
Okay, this means that the client ID is probably incorrect. I would make sure that there are no trailing spaces in the value entered.
I would also confirm that you have entered the correct redirect URL during the AniList app setup, as this can also cause issues later on during authentication.
from jellyfin-ani-sync.
ok i tried it today im very lost on alot of this is there any video or ideo tutorial on this or i can share my screen for help
from jellyfin-ani-sync.
There aren't any video tutorials, at least on how to use the plugin, could you share the URL that is generated (please hide/change your client ID, and you can hide the base URL/redirect URL if you want. I only need to see the general structure of the URL e.g. https://anilist.co/api/v2/oauth/authorize?response_type=code&client_id=1234&redirect_uri=https://mycallbackurl.com
) so I can see where the authentication process is failing
from jellyfin-ani-sync.
@vosmiic having the same issue here's the generated structure
https://anilist.co/api/v2/oauth/authorize?response_type=code&client_id=12345&redirect_uri=http://localhost:8096/AniSync/authCallback
from what I searched in the Anilist API docs, it should be correct so this could be an issue on their side maybe?
from jellyfin-ani-sync.
I have just tested it locally and I was able to authenticate my user, so it probably isn't their end.
I would also make sure that the redirect URI matches the one you have entered in the AniList app, you will also get this error if they are not the same.
from jellyfin-ani-sync.
Ok I figured out the problem 🤦 I forgot the rest of the URL at the end in the Anilist site, I had only put http://localhost:8096/
when it should've been http://localhost:8096/AniSync/authCallback
thanks and sorry about that 😅
Only problem now is, after authorizing it responds with the code but it leaves me in a blank page, and while testing the authorization does work since it says my username, it doesn't save the changes, it keeps going back to MyAnimeList.
from jellyfin-ani-sync.
A blank page is normal, you can just close it.
Displaying the client ID and secret can be a little buggy on the config page, if you tested the authentication and it responded with your AniList username it should be working.
Does the appropriate shows progress update in AniList if you try watching something? It's really the only sure fire way of knowing if the authentication worked or not.
from jellyfin-ani-sync.
@vosmiic I'm also having an error with testing the authentication, and when attempting to run a manual sync I get the error [2023-02-02 20:30:31.524 -06:00] [WRN] The user ********************************** is not authenticated. Skipping
Here is the error when clicking "Test Authentication"
[2023-02-02 20:35:02.229 -06:00] [ERR] 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](IEnumerable`1 source, Func`2 predicate, Boolean& found)
at jellyfin_ani_sync.Api.AuthApiCall.AuthenticatedApiCall(ApiName provider, CallType callType, String url, FormUrlEncodedContent formUrlEncodedContent, StringContent stringContent)
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_method698(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
After clicking "Authorize user" I get this as a response: https://anilist.co/api/v2/oauth/authorize?response_type=code&client_id=*****&redirect_uri=https://*****.stream/AniSync/authCallback
I have tried with both a MAL client/secret & an Anilist client/secret. Any help would be greatly appreciated.
from jellyfin-ani-sync.
Do you get an error back when authenticating? To complete the authentication, you should see a blank page.
I would make sure that the redirect URI matches the one in your app, also test the redirect URI by navigating to it and you should see a 400 error.
from jellyfin-ani-sync.
Related Issues (20)
- Anilist API Manual Sync erroring out. HOT 4
- NPE during status update with Shikimori provider
- Unable to access auth callback URL, given a 400 error "One or more validation errors occurred." HOT 6
- Manual Sync (Jellyfin -> Provider) not respecting "Libraries to check" HOT 12
- Update documentation to include adding "Callback Redirect URL" HOT 14
- Support for Jellyfin 10.9 Unstable Support HOT 7
- Support for shokofin's VFS HOT 1
- Read Anidb ID from the season before trying to use the season offset from Tvdb HOT 4
- AniList timeout issue HOT 7
- Jellyfin 10.9 released HOT 3
- Can't open select a provider HOT 6
- Jellyfin 10.9 - "Not Supported" with v3.2 HOT 2
- TVDB Episode translation to MAL or Anilist HOT 2
- Settings seem to be lost on refresh HOT 3
- AniSync 3.2.0.0 Status: NotSupported HOT 3
- Sync not working for anime with proper mappings in anime-offline-database
- Unable to authorise MAL login HOT 2
- Episodes not being logged after previously working. HOT 2
- shikimori does not create an application with a redirect to http HOT 5
- Could not update anime status HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jellyfin-ani-sync.