Closed nunettine closed 5 years ago
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.
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?
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...
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
Im using docker and encountering the same error, I can't find where is config.ini to change http-validate-host = false
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.
For docker, I added the flag here and it worked, when I ran sudo docker-compose up -d
:-)
For docker, you will need to map your config.ini
so you can modify it
@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 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 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 do you have telegram? Search for @skypee on telegram then I tell you how it works
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/
i use ubuntu 16.04 , i reinstall today , but i see error that i did't see any advise...?