We're facing some problems with using Ktor in AWS ...
# ktor
h
We're facing some problems with using Ktor in AWS Fargate behind a load balancer. We want HTTP/2 as the application protocol, but we're getting a Netty exception that looks strange:
Copy code
2025-05-09 07:18:11.727 [eventLoopGroupProxy-4-1] TRACE io.ktor.server.Application - Failed to decode request
java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)
Has anyone seen this and know what we're doing wrong?
So it seems this happens because we haven't configured a SSL certificate for our Ktor app. Since we're running behind a load balancer that terminates the SSL stuff with the client, we don't want to use it for the ktor instance. Is it possible to enable HTTP/2 in ktor without SSL?
l
I don't think it's possible yet. Can vote up for this issue here: https://youtrack.jetbrains.com/issue/KTOR-4750/Support-for-server-side-http2-without-tls-h2c
m
we turned off http2 with fargate a few years ago due to similar issues