Skip to content

'Import Collection' Scheduled Task - fails with JsonException #16

@pruthvirathod

Description

@pruthvirathod

The Collection Import scheduled task fails with the following error:

System.Text.Json.JsonException: '<' is an invalid start of a value. Path: $ | LineNumber: 1 | BytePositionInLine: 0.

Screnshots -
These are the only 2 I'm using
Image

Image

Logs

[2025-08-23 02:10:01.552 +05:30] [INF] [26] Jellyfin.Plugin.CollectionImport.CollectionImportManager: Refreshing lists
[2025-08-23 02:10:02.019 +05:30] [INF] [26] Jellyfin.Plugin.CollectionImport.CollectionImportManager: Syncing "Top Popular Shows of The Week"
[2025-08-23 02:10:02.019 +05:30] [INF] [59] Jellyfin.Plugin.CollectionImport.CollectionImportManager: Syncing "Top Watched Movies of The Week"
[2025-08-23 02:10:02.593 +05:30] [ERR] [26] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.Text.Json.JsonException: '<' is an invalid start of a value. Path: $ | LineNumber: 1 | BytePositionInLine: 0.
 ---> System.Text.Json.JsonReaderException: '<' is an invalid start of a value. LineNumber: 1 | BytePositionInLine: 0.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker)
   at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at Jellyfin.Plugin.CollectionImport.MdbClientManager.Request(String url)
   at Jellyfin.Plugin.CollectionImport.CollectionImportManager.GetItemIdsFromMdb(ImportSet set, IEnumerable`1 dbItems)
   at Jellyfin.Plugin.CollectionImport.CollectionImportManager.SyncCollection(ImportSet set, IEnumerable`1 dbItems, CancellationToken cancellationToken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions