eos icon indicating copy to clipboard operation
eos copied to clipboard

Error 3200006: invalid http request

Open vectar31 opened this issue 8 years ago • 6 comments

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 avatar Aug 19 '18 13:08 vectar31

@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?

Gargo avatar Aug 19 '18 18:08 Gargo

Same issue

yashvadhvani avatar Aug 20 '18 07:08 yashvadhvani

Same issue

flyer88 avatar Sep 02 '18 05:09 flyer88

Same issue

Mitrofanov avatar Sep 13 '18 20:09 Mitrofanov

Seems to be solved:

  1. 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
  1. 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'

Mitrofanov avatar Sep 13 '18 20:09 Mitrofanov

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

johnworthley avatar Sep 18 '18 22:09 johnworthley