martin.petrulak
11/08/2019, 11:01 AMregister(CocktailIngredientMatrix.serializer().list)
register(Ingredient.serializer().list)
I get error from /cocktailIngredientMatrix
endpoint
RESPONSE <http://10.0.2.2:8080/cocktailIngredientMatrix> failed with exception: kotlinx.serialization.json.JsonDecodingException: Invalid JSON at 23: Encountered an unknown key cocktailID
When i change thh order to :
register(Ingredient.serializer().list)
register(CocktailIngredientMatrix.serializer().list)
I get following error :
RESPONSE <http://10.0.2.2:8080/ingredients> failed with exception: kotlinx.serialization.json.JsonDecodingException: Invalid JSON at 41: Encountered an unknown key name
e5l
11/08/2019, 11:02 AMmartin.petrulak
11/08/2019, 11:07 AM/ingredients
and only Ingredient
serializer is registered code works.
Same goes for /cocktailIngredientMatrix
, it works ,if i have registered only CocktailIngredientMatrix
serializer.
In scenario when i want to hit both enpoints -> i need both serializers to be registered, one of them throw an exception.
Wierd thing is that when i change the order of how i register the serializer, the one that did not worked works, and the one that worked doesnt worke5l
11/08/2019, 11:08 AMregisterSerializer
because of typeOf
martin.petrulak
11/08/2019, 11:10 AMHttpClient
, is there any issu tracker ticket that i can follow?