Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error requesting a TV show in Medusa - JSON deserialization issue #5217

Open
Antaneyes opened this issue Feb 23, 2025 · 0 comments
Open

Error requesting a TV show in Medusa - JSON deserialization issue #5217

Antaneyes opened this issue Feb 23, 2025 · 0 comments

Comments

@Antaneyes
Copy link

Antaneyes commented Feb 23, 2025

Summary

When trying to request a TV show in Ombi towards Medusa, an exception is thrown due to a JSON deserialization issue. It appears that the system expects a JSON array but receives a JSON object instead, when requesting a TV show from the mobile app, an error message appears stating that the request could not be added but will keep retrying.

Steps to reproduce the issue:

Open Ombi and attempt to request a TV show
The series is added correctly, but it throws this error.
Checking the logs reveals a JSON deserialization exception.

Request Error on App mobile
Hello! The user has requested Tell Me Lies but it could not be added. This has been added into the requests queue and will keep retrying.
The logs indicate a JSON deserialization issue when handling the request.

Ombi Version

4.44.1

Medusa Version

1.0.22

What platform(s) does this occur on?

Windows

What database are you using?

SQLite (Default)

Relevant log output

[ERR] Exception thrown when sending a movie to DVR app, added to the request queue
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'Ombi.Api.SickRage.Models.Data[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'data', line 1, position 11.
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Ombi.Api.Api.Request[T](Request request, CancellationToken cancellationToken) in /home/runner/work/Ombi/Ombi/src/Ombi.Api/Api.cs:line 81
   at Ombi.Api.SickRage.SickRageApi.SetEpisodeStatus(String apiKey, String baseUrl, Int32 tvdbid, String status, Int32 season, Int32 episode) in /home/runner/work/Ombi/Ombi/src/Ombi.Api.SickRage/SickRageApi.cs:line 107
   at Ombi.Core.Senders.TvSender.SendToSickRage(ChildRequests model, SickRageSettings settings, String qualityId) in /home/runner/work/Ombi/Ombi/src/Ombi.Core/Senders/TvSender.cs:line 467
   at Ombi.Core.Senders.TvSender.Send(ChildRequests model) in /home/runner/work/Ombi/Ombi/src/Ombi.Core/Senders/TvSender.cs:line 66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant