OpenAtomFoundation / xupercore

The kernel of xuperchain.
Apache License 2.0
61 stars 47 forks source link

[xchain-cli]query chain status failed #237

Closed Karenlrx closed 3 years ago

Karenlrx commented 3 years ago

when I use cmd in README.MD: $$./bin/xchain-cli status -H :36301. An error will be reported that command exec failed.err:query chain status failed. It seems that I need to use command【 $$./bin/xchain-cli chain status -H : xxxx】by using -h. How can I get the correct port? it seems is not the port from the file of network.yaml.

icexin commented 3 years ago

Try the rpcPort field in server.yaml

Karenlrx commented 3 years ago

Try the rpcPort field in server.yaml

still error when I use rpcPort: 36101. when I check the node's log, I ensure the network is working. if I use '$$./bin/xchain-cli status',the cmd show that: image

But still can't use the cli watch the status specify port.

KenianShi commented 3 years ago

the correct host is "127.0.0.1:36101", not ":36101". please have a try with "-H 127.0.0.1:36101" if you run the xuperChain in your local machine.

Karenlrx commented 3 years ago

the correct host is "127.0.0.1:36101", not ":36101". please have a try with "-H 127.0.0.1:36101" if you run the xuperChain in your local machine.

Thx,it's solved.