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

Jose A.

03/01/2021, 12:44 PM
Hi! Using ktor 1.5.2. I'm getting these Netty exceptions in the logs:
Copy code
java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)
at io.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:64)
at io.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:95)
at io.netty.handler.codec.http.HttpObjectDecoder.decode(HttpObjectDecoder.java:250)
...
2021-03-01 12:39:12.067 [eventLoopGroupProxy-4-31] TRACE Application - Failed to decode request
java.lang.IllegalArgumentException: invalid version format: D|¢Þ:À/ÀÀ'À0ÀÀ(/<5=AÀ+À À#À,À
at io.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:120)
...
INFO Application - >>> REQUEST: Unhandled: GET - /templates <- I added these logs for debugging
The requests are made using Chrome (so it's not HTTP/0.9 for sure). It seems even I get the exceptions the requests are received. Any ideas?
r

Rustam Siniukov

03/01/2021, 12:47 PM
Hi! Did you have it before 1.5.2?
j

Jose A.

03/01/2021, 12:50 PM
I don't think so... but I'm getting these errors after a huge update to the service (upgrading many dependencies and server code). The errors are not showing in the tests.
Is there any way to log or debug netty requests to check if these exceptions are not being processed by ktor?
It seems our F5 (the load balancer) is making those TLS calls... So no ktor related problem... Sorry!
👍 1
5 Views