val response = client.get<List<Event>>("<http://localhost:8080>${application.locationToUrl(EventsApi())}") {
body = ...
contentType(ContentType.Application.Json)
}
and this is the output:
Copy code
invalid: 415 Unsupported Media Type. Text: ""
But if I uncomment
gson { setPrettyPrinting() }
it works…
Shouldn’t
kotlinx.serialization.json.Json
be enough? 🤔
r
Rustam Siniukov
04/21/2021, 8:57 PM
can you please create a minimal example and file a bug in YT?
I don’t if its related, but the SS can parse it (when it communicates for instance with Google Api or any other service), but the web app can’t (it shows null) 🤔