2024-11-03 17:00:42.125 -06:00 [WRN] Failed to get collections from Plex
Refit.ApiException: An error occured deserializing the response.
---> System.Text.Json.JsonException: The JSON value could not be converted to System.String. Path: $.MediaContainer.Metadata[0].childCount | LineNumber: 0 | BytePositionInLine: 657.
---> System.InvalidOperationException: Cannot get the value of a token type 'Number' as a string.
at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_ExpectedString(JsonTokenType tokenType)
at System.Text.Json.Utf8JsonReader.GetString()
at System.Text.Json.Serialization.Metadata.JsonPropertyInfo
1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, TCollection& value)
at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter
1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.Metadata.JsonPropertyInfo
1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, Utf8JsonReader& reader, Exception ex)
at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.ContinueDeserialize(ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack)
at System.Text.Json.Serialization.Metadata.JsonTypeInfo
1.DeserializeAsync(Stream utf8Json, CancellationToken cancellationToken)
at System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsyncCore[T](HttpContent content, JsonSerializerOptions options, CancellationToken cancellationToken)
at Refit.SystemTextJsonContentSerializer.FromHttpContentAsync[T](HttpContent content, CancellationToken cancellationToken) in //Refit/SystemTextJsonContentSerializer.cs:line 48
at Refit.RequestBuilderImplementation.DeserializeContentAsync[T](HttpResponseMessage resp, HttpContent content, CancellationToken cancellationToken) in //Refit/RequestBuilderImplementation.cs:line 450
at Refit.RequestBuilderImplementation.<>c__DisplayClass15_02.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in /_/Refit/RequestBuilderImplementation.cs:line 385
--- End of inner exception stack trace ---
at Refit.Implementation.Generated.ErsatzTVInfrastructurePlexIPlexServerApi.global::ErsatzTV.Infrastructure.Plex.IPlexServerApi.GetCollections(Int32 skip, Int32 take, String token) in D:\a\ErsatzTV\ErsatzTV\ErsatzTV.Infrastructure\obj\Release\net8.0\InterfaceStubGeneratorV2\Refit.Generator.InterfaceStubGeneratorV2\IPlexServerApi.g.cs:line 368
at LanguageExt.TaskExtensions.Map[T,U](Task
1 self, Func2 map)
at LanguageExt.TaskExtensions.Map[T,U](Task
1 self, Func2 map)
at ErsatzTV.Infrastructure.Plex.PlexServerApiClient.GetPagedLibraryContents[TItem](PlexConnection connection, Func
2 countItems, Func5 getItems)+MoveNext() in D:\a\ErsatzTV\ErsatzTV\ErsatzTV.Infrastructure\Plex\PlexServerApiClient.cs:line 363
at ErsatzTV.Infrastructure.Plex.PlexServerApiClient.GetPagedLibraryContents[TItem](PlexConnection connection, Func
2 countItems, Func5 getItems)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at ErsatzTV.Scanner.Core.Plex.PlexCollectionScanner.ScanCollections(PlexConnection connection, PlexServerAuthToken token, CancellationToken cancellationToken) in D:\a\ErsatzTV\ErsatzTV\ErsatzTV.Scanner\Core\Plex\PlexCollectionScanner.cs:line 42
at ErsatzTV.Scanner.Core.Plex.PlexCollectionScanner.ScanCollections(PlexConnection connection, PlexServerAuthToken token, CancellationToken cancellationToken) in D:\a\ErsatzTV\ErsatzTV\ErsatzTV.Scanner\Core\Plex\PlexCollectionScanner.cs:line 42