Hi! Using ktor 1.5.2. I'm getting these Netty exce...
# ktor
j
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
Hi! Did you have it before 1.5.2?
j
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