https://kotlinlang.org logo
#ktor
Title
# ktor
j

Jitesh

04/26/2020, 2:38 PM
I am working on PoC using Ktor version 1.3.2 and have written simple POST API where I send 2 string params and return the same 2 strings. BUT, I am getting this error while using POST API
kotlinx/coroutines/io/ByteReadChannel
Any Idea what mistake am I doing?.
Copy code
HTTP/1.1 500 Internal Server Error
Date: Sun, 26 Apr 2020 14:30:36 GMT
Content-Length: 37
Connection: keep-alive
Content-Type: text/plain; charset=UTF-8
Server: ktor-server-core/1.3.2 ktor-server-core/1.3.2
f

foxx1337

04/26/2020, 3:13 PM
Feels like some exception that might be visible while debugging the service. Any exceptions?
j

Jitesh

04/27/2020, 2:26 PM
I read some past messages over here for same error and I followed same resolution where it gets resolved once we replace moshi with gson lib. Thanks for checking @foxx1337
2 Views