eoscanada / eosc

Cross-platform EOSIO command-line swiss-army-knife (EOS, BOS, Telos, Worbli, etc.)
https://eosc.app
MIT License
134 stars 59 forks source link

WAX blockchain: unsupported protocol scheme "" on every command #147

Closed GassaFM closed 5 years ago

GassaFM commented 5 years ago

I'm trying to use eosc with WAX blockchain. But every request fails. The basic example:

eosc -u chain.wax.io get info

The result is:

ERROR: get info: chain.wax.io/v1/chain/get_info: Post chain.wax.io/v1/chain/get_info: unsupported protocol scheme ""

Other requests fail because get_info is not available in the first place.

Still, https://chain.wax.io/v1/chain/get_info opens on the web for me just fine.

Is there an override to try the commands anyway, despite the protocol scheme apparently not being specified?

maoueh commented 5 years ago

Hmmm weird this unsupported scheme thing, wondering why such error can happen in a so easy HTTP call. I’ll have a look today and get back to you.

sduchesneau commented 5 years ago

The protocol should be http -> eosc -u http://chain.wax.io get info and eosc -u https://chain.wax.io get info gets you the right results.

The help specifies clearly what is being expected of the -u flag: -u, --api-url string API endpoint of eos.io blockchain node (default "https://mainnet.eoscanada.com")

GassaFM commented 5 years ago

Aha, so it's a simple user error. Sorry then, and thanks for looking into it!