I have a super weird issue :smile: I have an API ...
# ktor
m
I have a super weird issue 😄 I have an API that contains multiple endpoints, some of them are `/ingredients`and
/cocktailIngredientMatrix
. Both of them return lists. All works perfectly fine via postman. The problem comes when i want to call those endpoints from my multiplatform project. I have a
HttpClient
with following configuration:
Copy code
install(JsonFeature) {
            serializer = KotlinxSerializer().apply {
                register(CocktailPackage.serializer())
                register(User.serializer())
                register(Ingredient.serializer().list)
                register(CocktailIngredientMatrix.serializer().list)
            }
        }
If i call
/ingredients
and
Serializer
doesnt contain
register(CocktailIngredientMatrix.serializer().list)
. Code works If i call
/cocktailIngredientMatrix
and
Serializer
doesnt contain
register(Ingredient.serializer().list)
. Code works This is super weird. Is this a known issue ?
Copy code
serializer_version = "0.13.0"
ktor_version = "1.2.5"