This demonstrates a java.lang.StackOverflowError error in the AWS Lambda runtime for Java 11 that is caused by a SocketTimeoutException within in the ktor-client ...
The minimal reproducing code can be found in com.example.stackoverflow.AppKt.reproduce. If you execute the code via the accompanied main function will see a stack trace printed in both cases.