Error 3200006: invalid http request
Hey, I have followed the following steps to run nodeos and keosd:
docker pull eosio/eos
To run the server software (on port 7777):
docker run --name server --network=eosnetwork --rm -p 7777:7777 -i eosio/eos /bin/bash -c "nodeos -e -p eosio --plugin eosio::producer_plugin --plugin eosio::chain_api_plugin --plugin eosio::http_plugin -d /mnt/dev/data --http-server-address=0.0.0.0:7777 --access-control-allow-origin=*"
To run the wallet software (on port 5555):
docker run --name wallet --network=eosnetwork --rm -p 5555:5555 -i eosio/eos /bin/bash -c "keosd --http-server-address=0.0.0.0:5555"
Inside the container when I do:
cleos -u http://server:7777 get info
I get the following response:
Error 3200006: invalid http request
Error Details:
The server has rejected the request as invalid!
Please verify this url is valid: http://server:7777/v1/chain/get_info
If the condition persists, please contact the RPC server administrator for server!
I looked into the config.ini file inside the docker container but it doesn't provide any http-validate-host = 0 argument. Any thoughts?
@vectar31
I have the same issue
the steps are described here:
https://habr.com/post/417981/
after step:
cleos wallet create
In general how do you edit config and where is that file?
Same issue
Same issue
Same issue
Seems to be solved:
- open port in keosd container like:
keosd:
image: eosio/eos:patched
command: /opt/eosio/bin/keosd --wallet-dir /opt/eosio/bin/data-dir --http-server-address=127.0.0.1:8900 --http-alias=keosd:8900 --http-alias=localhost:8900
hostname: keosd
links:
- nodeosd
ports:
- 8900:8900
- Adding alias like
alias cleos='docker exec -it docker_keosd_1 /opt/eosio/bin/cleos --url http://nodeos:8888 --wallet-url http://127.0.0.1:8900'
Set http-validate-host to 0 in your config.ini and change http-server-address = 127.0.0.1:8888 to http-server-address = localhost:8888
cd ~/eosio-wallet
vim config.ini
Ensure http-validate-host = 0
Ensure http-server-address = localhost:8888
This solution is providing by Cryptaleos.io, a standby block producer