code 400, message Bad request syntax ('\x88\x80\xa32\xc9\x98')

8.3k Views Asked by At

noVNC websocket log shows above message on an authentication event. The authentication is always failing and noVNC is reporting subject error.

Some times the error comes as code 400, message Bad HTTP/0.9 request type ('\x88\x8fR\x80\x19\x98QhM\xf9')

Is ('\x88\x80\xa32\xc9\x98') an ASCII or UTF-8 ? How to read and understand this message ?

Background : CentOS 5 / Python 2.4.3 / noVNC

2

There are 2 best solutions below

0
On

For those that stumbled to this page...and you are just running a vanilla tensorboard setup, first verify your url starts with "http://" as oppose to "https://"!

The message below is what i got when i attempted to access tensorboard (http) with https:

code 400, message Bad request version ('\x1a\x1a\x13\x01\x13 ...

0
On

It seems this was a bug on websockify's side. It is fixed now, but they didn't make a release that includes the fix, so you have to use the master branch if you want to benefit from it.

Alternatively, you could just add the relevant line from that pull request to the file websockify/websocket.py.