Invalid character found in method name [0x120x010x00^0...]. HTTP method names must be tokens

manmohan3108
I am using Java client to get data via web socket. I have a domain which is routed to my EC2 cloud.

Inside my EC2, I am terminating my https using reverse proxy of Let's Encrypt and routing it to my 8080 port as http.
Is there any issue in my ssl certificate?

I am getting data via web socket but sometimes I am getting this error:
"2023-09-28T03:57:08.504+05:30 INFO 3074 --- [http-nio-8080-exec-8] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.

java.lang.IllegalArgumentException: Invalid character found in method name [0x120x010x00^0x000x000x010x000x000x00$0x000x060x010x00*0x000x010x020x00+0x000x010x030x00,0x000x040x040x0000x000x010x050x0010x00$0x060x00U0x000x010xff0x040x070x0c0xbc0x000x000x000x000x000x000x150xd00x00p0xf8v0xcf0x190x000x000x008y.0xc70xf70x7f0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000xfe0xff0xff0xff0x01...]. HTTP method names must be tokens
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:407) ~[tomcat-embed-core-10.1.8.jar!/:na]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:263) ~[tomcat-embed-core-10.1.8.jar!/:na]"
  • rakeshr
    Yes, seems like your local SSL cert issue. This thread might be useful.
  • manmohan3108
    manmohan3108 edited October 2023
    But i am getting data from websocket but getting above error sometimes. The thread you provided says about different version and header size issue. But i think i am getting encrypted data. Does kite send encrypted data?
  • sujith
    Kite Ticker sends binary data. You ca know more about parsing that data here.
  • manmohan3108
    Yes I know about kite ticker sending binary data. I am receiving data properly but only sometimes getting this error.
Sign In or Register to comment.