eos icon indicating copy to clipboard operation
eos copied to clipboard

cleos wallet error //Invalid content-length response

Open nunettine opened this issue 8 years ago • 13 comments

image image

i use ubuntu 16.04 , i reinstall today , but i see error that i did't see any advise...?

nunettine avatar Jul 13 '18 10:07 nunettine

I believe it's a duplicate of https://github.com/EOSIO/eos/issues/4594.

add http-validate-host = false to your config.ini of keosd, restart keosd.

spartucus avatar Jul 13 '18 10:07 spartucus

also having same issue... i'm not using docker, installed it via script, nodeos and keosd are working, but i get same error with cleos... i put http-validate-host = false in config.ini of nodeos, where is config.ini of keosd?

skosito avatar Jul 13 '18 12:07 skosito

i managed to fix it by running nodeos and keosd on different ports, and wallet create works, but now publishing account fails with same error...

skosito avatar Jul 13 '18 14:07 skosito

i used docker, but cinfig.ini of keosd is not exist , i find two of config.ini , docker,build i change docker_config.ini, but i can't solve it

nunettine avatar Jul 14 '18 03:07 nunettine

Im using docker and encountering the same error, I can't find where is config.ini to change http-validate-host = false

kitchenSpoon avatar Jul 15 '18 01:07 kitchenSpoon

It's into /tmp/eosio/config directory ...

BTW, on my Mac (Ver 10.13.5) in the config.ini I changed http-validate-host=1 to http-validate-host=0 and it worked for me.

ajile-in avatar Jul 15 '18 13:07 ajile-in

screenshot from 2018-07-15 22-38-53 For docker, I added the flag here and it worked, when I ran sudo docker-compose up -d :-)

peterokwara avatar Jul 15 '18 19:07 peterokwara

For docker, you will need to map your config.ini so you can modify it

andriantolie avatar Jul 16 '18 03:07 andriantolie

@peterokwara where to find this file in which i have to write --http-validate-host=false ? i start eosiod using

sudo docker run --rm --name eosio -d -p 8888:8888 -p 9876:9876 -v /tmp/work:/work -v /tmp/eosio/data:/mnt/dev/data -v /tmp/eosio/config:/mnt/dev/config eosio/eos-dev /bin/bash -c "nodeos -e -p eosio --plugin eosio::wallet_api_plugin --plugin eosio::wallet_plugin --plugin eosio::producer_plugin --plugin eosio::history_plugin --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --plugin eosio::http_plugin -d /mnt/dev/data --config-dir /mnt/dev/config --http-server-address=0.0.0.0:8888 --access-control-allow-origin=* --http-validate-host=false --contracts-console"

cleos --wallet-url http://127.0.0.1:8888 wallet create works but cleos wallet create does not work

vijaytabhatt avatar Jul 18 '18 05:07 vijaytabhatt

@vijaytabhatt normally when running cleos you have to specify the wallet url and node url so that it works, for example how I run my cleos after running nodeos and keosd is

cleos -u http://localhost:8888 --wallet-url http://127.0.0.1:8900

Remember it depends on the port and ip address you are using for both nodeos and keosd

peterokwara avatar Jul 18 '18 08:07 peterokwara

@peterokwara thanks using above command worked!

  1. I am using instructions given at https://developers.eos.io/eosio-nodeos/docs/docker-quickstart , are those correct?
  2. i understand http://localhost:8888 as i have run nodeos on port 8888 , but why do we have to give wallet-url of 8900? is it the default port?

can you just explain me use of the above commands , one is used to start nodeos using docker then we start cleos on that nodeos instance

sorry if i am asking basic questions but i need to understand use of this function

vijaytabhatt avatar Jul 18 '18 09:07 vijaytabhatt

@vijaytabhatt do you have telegram? Search for @skypee on telegram then I tell you how it works

peterokwara avatar Jul 18 '18 09:07 peterokwara

hi @nunettine @vijaytabhatt please refer to this page https://developers.eos.io/eosio-nodeos/docs/cleos-overview on the developer portal. Any other problem feel free to post at EOS.IO stack exchange https://eosio.stackexchange.com/

dixia avatar Nov 01 '18 06:11 dixia