Errors when parsing the search query are not handled by REST API, the response is plaintext.
Print all the messages on a QueryException (not just the length).