java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x060xdd0x01

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
    Sonarqube Server

  • how is SonarQube deployed: zip, Docker, Helm

Zip on Windows Server 2025

  • what are you trying to achieve

End goal is to use SSL and IIS is my reverse proxy

  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,
So I am running the latest version of Sonarqube on Windows. I want to use SSL so installed IIS locally. I followed the steps in the link above and have my certs configured, but I get this error in the logs:

2025.05.27 18:44:33 INFO  web[][o.a.c.h.Http11Processor] Error parsing HTTP request header\n Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x060xdd0x010x000x060xd90x030x030x04?0xac0xbb0xb1WY0xcb[X0xa60x0b ]. HTTP method names must be tokens
	at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:406)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:270)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
	at java.base/java.lang.Thread.run(Thread.java:842)

I am happy to share my IIS config.

Hey @Gurdip_sira

Users seem to get this error when the client tries to use HTTPS on an endpoint that it not HTTPS enabled (the request is encrypted, and the server is requesting raw data).

I did find that we have a guide on setting up IIS and SonarQube in the docs, it might be safer to follow this than the blog that you shared.