Jakub Gwóźdź
12/06/2024, 2:03 PMio.ktor.http.cio.ParserException: No colon in HTTP header in ---2decf504-1729420d-4e06394c-490eba8c3ce687f2-69c5b75b7dd22018-478d3286-- in builder:
---2decf504-1729420d-4e06394c-490eba8c3ce687f2-69c5b75b7dd22018-478d3286--
at io.ktor.http.cio.HttpParserKt.noColonFound(HttpParser.kt:293)
it's not deterministic, our requests looks like this:
REQUEST: <http://i9ns-api/v1/[REDACTED]>
METHOD: HttpMethod(value=PUT)
COMMON HEADERS
-> Accept: application/json
-> Accept-Charset: UTF-8
-> X-Correlation-ID: db9ce14c-0593-4793-bede-a919c1643cc4
CONTENT HEADERS
-> Content-Length: 2455053
-> Content-Type: multipart/form-data; boundary=-2decf504-1729420d-4e06394c-490eba8c3ce687f2-69c5b75b7dd22018-478d3286
then, since we have some retries configured, request is immediately resend (even with the same boundary=...
and second time it works correctly. Is that a know issue?
Ktor 3.0.1, Netty EngineAleksei Tirman [JB]
12/09/2024, 7:53 AMJakub Gwóźdź
12/09/2024, 8:05 AMembeddedServer(
Netty,
module = { .... }
)
and then using call.receiveMultipart()
It happens sometimes in incoming traffic from outside world, and much often in the inside kubernetes cluster when client is also a ktor 3.0.1
I will this week update it all to ktor 3.0.2 to see if it helps, but I doubt