perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

Illegal character on proxy https connection #1008

Closed RyanSusana closed 5 years ago

RyanSusana commented 6 years ago

Hello spark friends,

I am deploying my spark app with docker.

I am using nginx and letsencrypt to point to the containers running sparkjava.

So nginx handles https for me.

Everything works fine except I get a WARN log. Illegal character 0x18 in state=START for buffer HeapByteBuffer Spamming my SLF4J logs

I need to see the info logs so I cant set the logger level higher.

Is there any way to solve it other than using secure()?

toyg commented 5 years ago

It's probably due to something NGINX says when talking to spark/jetty. Some details and pointers about Jetty behaviour here: https://stackoverflow.com/questions/32300109/header-parse-error-after-upgrade-to-jetty-9-3

I would check what nginx is passing with something like wireshark.