When I use the cleos -u http://localhost:8888, it will cause error, but if I use cleos -u, that is ok.

What's the problem?

  • 1
    What error does it cause? It seems to work fine for me
    – confused00
    Jul 20, 2018 at 7:27
  • invalid content length, my version is v1.0.10
    – Jimmy Guo
    Jul 20, 2018 at 12:06

1 Answer 1


Should work, but I believe eosio::http_plugin is not properly validating the case where host is localhost. Try:

$ cleos -u http://localhost:8888 --http-validate-host=false

or add http-validate-host=false to the config.ini for nodeos.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.