Javier
07/21/2022, 12:37 PMMockEngine
with Json
, but the same exact logic is working when fetching from remote, more info in 🧵No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class com.javiersc.either.network.ktor.TodoDTO
with response from <http://localhost/path>:
status: 200 OK
response headers:
io.ktor.client.call.NoTransformationFoundException: No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class com.javiersc.either.network.ktor.TodoDTO
with response from <http://localhost/path>:
status: 200 OK
response headers:
CIO
one is working perfectly, meanwhile the MockEngine
one, which I think is doing the same, it failsTodoDTO
is the same class for both testsTODO
string can be serialized if I use it with the Json without using KtorAleksei Tirman [JB]
07/21/2022, 5:19 PMContent-Type
header?
respond(TODO, headers = headersOf(HttpHeaders.ContentType, ContentType.Application.Json.toString()))
Javier
07/21/2022, 8:45 PM