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?

  • 1
    What error does it cause? It seems to work fine for me – confused00 Jul 20 '18 at 7:27
  • invalid content length, my version is v1.0.10 – Jimmy Guo Jul 20 '18 at 12:06
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.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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