2

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

What's the problem?

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

1 Answer 1

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.

0

Your Answer

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

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