MoviebaseApp / tmdb-kotlin

🎬 Modern powerful TMDB API to fetch movies and TV shows for Kotlin Multiplatform.
https://www.moviebase.app
Apache License 2.0
210 stars 22 forks source link

MissingFieldException: 'known_for_department' #9

Closed edmundjohnson closed 2 years ago

edmundjohnson commented 2 years ago

I'm getting an exception with v0.6.3 when calling Tmdb3.find.find("tt11271038", "en", TmdbExternalSource.IMDB)

Stacktrace:

    kotlinx.serialization.MissingFieldException: 
     Field 'known_for_department' is required for type with serial name 'app.moviebase.tmdb.model.TmdbCrew', but it was missing
        at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
        at app.moviebase.tmdb.model.TmdbCrew.<init>(TmdbPeopleModel.kt:115)
        at app.moviebase.tmdb.model.TmdbCrew$$serializer.deserialize(TmdbPeopleModel.kt:115)
        at app.moviebase.tmdb.model.TmdbCrew$$serializer.deserialize(TmdbPeopleModel.kt:115)
ChrisKruegerDev commented 2 years ago

Thanks. I will check this field.

ChrisKruegerDev commented 2 years ago

The issue is fixed in version 0.6.4

edmundjohnson commented 2 years ago

Thank you!