Skip to content

500 Internal Server Error during SyncMovies with Trakt API #264

@Bastien42

Description

@Bastien42

When attempting to sync the movie library with Trakt via the scheduled task, the following error occurs:

[21:32:12] [ERR] [58] Trakt.ScheduledTasks.SyncLibraryTask: Exception handled in SyncMovies
System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Trakt.Api.TraktApi.GetFromTrakt[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
   at Trakt.Api.TraktApi.SendGetAllCollectedMoviesRequest(TraktUser traktUser)
   at Trakt.ScheduledTasks.SyncLibraryTask.SyncMovies(User user, TraktUser traktUser, IProgress`1 progress, Double currentProgress, Double availablePercent, CancellationToken cancellationToken)
[21:32:12] [ERR] [58] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Trakt.Api.TraktApi.GetFromTrakt[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
   at Trakt.Api.TraktApi.SendGetAllCollectedMoviesRequest(TraktUser traktUser)
   at Trakt.ScheduledTasks.SyncLibraryTask.SyncMovies(User user, TraktUser traktUser, IProgress`1 progress, Double currentProgress, Double availablePercent, CancellationToken cancellationToken)
   at Trakt.ScheduledTasks.SyncLibraryTask.SyncUserLibrary(User user, TraktUser traktUser, IProgress`1 progress, Double currentProgress, Double percentPerUser, CancellationToken cancellationToken)
   at Trakt.ScheduledTasks.SyncLibraryTask.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)
   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options

Steps to Reproduce:

  1. Configure the Trakt plugin in Jellyfin with a valid Trakt account.
  2. Enable the scheduled task for library sync.
  3. Wait for the task to execute or trigger it manually.
  4. Observe the 500 Internal Server Error in the logs.

Expected Behavior:
The library should sync successfully with Trakt without errors.

Actual Behavior:
The sync fails with a 500 Internal Server Error.

Additional Context:

  • Jellyfin version: 10.11.2
  • Plugin version: 27.0.0.0
  • Trakt account is authenticated and functional.
  • No known outages on Trakt's status page at the time of the error.

Logs:
Full logs are available if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions