Hi! I'm trying to respond to a get query like this...
# ktor
j
Hi! I'm trying to respond to a get query like this:
Copy code
call.respondBytesWriter {
    jobOutputRepository.get(id, subId).collect { writeFully("$it\n".toByteArray()) }
}
But with curl I'm getting
curl: (18) transfer closed with outstanding read data remaining
I tried to add a
flush()
but I got the same error. Any ideas?
a
Could you please share a definition for
jobOutputRepository.get
if your problem is still relevant?
j
Thanks Aleksei! It was my code not ktor. It was throwing an Exception so the data was interrupted.