Snd-R / komf

Komga and Kavita metadata fetcher
MIT License
299 stars 17 forks source link

MangaDex - 500 error when searching for some manga (null returned in json translatedlanguage array) #161

Closed vodkapmp closed 1 week ago

vodkapmp commented 1 week ago

It seems that some manga cause 500 errors when MangaDex is active as a source. From what I can tell there's a panic when the language "null" is returned:

Caused by: kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 18787: Expected string literal but 'null' literal was found at path: $.data[2].attributes.availableTranslatedLanguages[21]
Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.
JSON input: ....."uk","ms","hi","tl","hu","nl",null],"latestUploadedChapter":.....