here the related post on google:
badMessage: 400 Unknown Version for HttpChannelOverHttp
I got an exception with status code 400 (unknown version) from httpParser
,
but i don't understand what happened and how i can fix the problem.
What is the Reason for this Exception?
The Code says: version == null
here is the code:
String version=takeString();
_version=HttpVersion.CACHE.get(version);
if (_version==null)
throw new BadMessage(HttpStatus.BAD_REQUEST_400,"Unknown Version");
setState(State.SPACE1);
this message usually occurs if you have a whitespace (or other characters which have to be URL-encoded properly) in the URL, like f.e.
curl "http://0.0.0.0:8082/structr/rest/users?name=A B"
Correct:
curl "http://0.0.0.0:8082/structr/rest/users?name=A%20B"
Hope that helps, Axel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With