Hello, I have following issue (it started happenin...
# ktor
k
Hello, I have following issue (it started happening after any request to my backend on hosting server. ):
Copy code
2024-09-17 13:21:58.821 [eventLoopGroupProxy-4-4] TRACE Application - Failed to decode request
java.lang.IllegalArgumentException: invalid version format: Ø
                                                             ¥ÛÞ¬É'(`È<D#Ù{)ËÖ¶ 13;|°ÝÕP*ִܶ)ØGG(Ÿ¬ÓÐQK
                                                                                                                 >À,À0̨̩̪À+À/À$À(KÀ#À'GÀ
	at io.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:123)
	at io.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:85)
	at io.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:200)
	at io.netty.handler.codec.http.HttpObjectDecoder.decode(HttpObjectDecoder.java:354)
    ....
I found similiar issue https://youtrack.jetbrains.com/issue/KTOR-2858/Getting-error-ktor.application-Failed-to-[…]created-ktor-project-with-the-latest-idea-eap2.1.2.4416.7, but here I don't see anything what I can drop. Do you meet this issue or know how to solve it?
once i received this:
Copy code
2024-09-17 13:23:48.061 [eventLoopGroupProxy-4-6] TRACE Application - Failed to decode request
java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)
	at io.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:72)
	at io.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:200)
	at io.netty.handler.codec.http.HttpObjectDecoder.decode(HttpObjectDecoder.java:354)
I'm using ktor 2.3.12
kotlin 2.0.20
ssl breaks everything ;/
a
Can you share the URL to your backend? How is TLS configured on the server?