Can I access public nodes in CLI_wallet?

Started by yangyinzd, June 12, 2017, 08:03:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

abit

BitShares committee member: abit
BitShares witness: in.abit

Skyscraper_Farms

Getting this same handshake failed message. Anyone figure this out?

sahkan

Maybe you have a firewall blocking the connection?
DEX Access:  [url="https://dexnode.net/?r=sahkan-bitshares"]https://dexnode.net/?r=sahkan-bitshares[/url]

xeroc

If you use wss:// your server needs to tunnel through SSL .. try with ws:// instead

yangyinzd

Up up, anyone can help in this topic?

Thanks a lot!

questionsquestions


yangyinzd

Yes, I got the same error for all public source:  TLS handshake failed

Quote from: questionsquestions on June 14, 2017, 05:42:30 PM
I've just tried this and I get the same, regardless of which web-socket server is used. This is on Bitshares Core release 2.0.170606 on Windows, using cli_wallet -s {any-websocket-server}

The error:


C:\Temp\bitshares-cli>cli_wallet  -s  wss://dexnode.net/ws
Logging RPC to file: logs\rpc\rpc.log
2220742ms th_a       main.cpp:120                  main                 ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
2220742ms th_a       main.cpp:124                  main                 ] nathan_pub_key: BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2220742ms th_a       main.cpp:125                  main                 ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Starting a new wallet with chain ID 4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8 (from egenesis)
2220757ms th_a       main.cpp:172                  main                 ] wdata.ws_server: wss://dexnode.net/ws
0 exception: unspecified
TLS handshake failed
    {"message":"TLS handshake failed"}
    asio  websocket.cpp:518 fc::http::detail::websocket_tls_client_impl::{ctor}::<lambda_79cc34a518286825a5be07605053c212>::operator ()

    {"uri":"wss://dexnode.net/ws"}
    th_a  websocket.cpp:704 fc::http::websocket_client::secure_connect

    {"uri":"wss://dexnode.net/ws"}
    th_a  websocket.cpp:678 fc::http::websocket_client::connect



I've also tried a number of web-socket servers from the light client as well as the one in the documentation: wss://bitshares.openledger.info/ws

Also, where are the log files stored? It says logs\rpc\rpc.log - but where is that as it doesn't seem to be rooted in the folder the cli_wallet executable is called from?

questionsquestions

#4
I've just tried this and I get the same, regardless of which web-socket server is used. This is on Bitshares Core release 2.0.170606 on Windows, using cli_wallet -s {any-websocket-server}

The error:


C:\Temp\bitshares-cli>cli_wallet  -s  wss://dexnode.net/ws
Logging RPC to file: logs\rpc\rpc.log
2220742ms th_a       main.cpp:120                  main                 ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
2220742ms th_a       main.cpp:124                  main                 ] nathan_pub_key: BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2220742ms th_a       main.cpp:125                  main                 ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Starting a new wallet with chain ID 4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8 (from egenesis)
2220757ms th_a       main.cpp:172                  main                 ] wdata.ws_server: wss://dexnode.net/ws
0 exception: unspecified
TLS handshake failed
    {"message":"TLS handshake failed"}
    asio  websocket.cpp:518 fc::http::detail::websocket_tls_client_impl::{ctor}::<lambda_79cc34a518286825a5be07605053c212>::operator ()

    {"uri":"wss://dexnode.net/ws"}
    th_a  websocket.cpp:704 fc::http::websocket_client::secure_connect

    {"uri":"wss://dexnode.net/ws"}
    th_a  websocket.cpp:678 fc::http::websocket_client::connect



I've also tried a number of web-socket servers from the light client as well as the one in the documentation: wss://bitshares.openledger.info/ws

Also, where are the log files stored? It says logs\rpc\rpc.log - but where is that as it doesn't seem to be rooted in the folder the cli_wallet executable is called from?

sahkan

Try ./programs/cli_wallet/cli_wallet -s wss://dexnode.net/ws

your connection might be timing out to that node.
DEX Access:  [url="https://dexnode.net/?r=sahkan-bitshares"]https://dexnode.net/?r=sahkan-bitshares[/url]

yangyinzd

Up up, does anyone know?

I will appreciate it very much.

yangyinzd

When I try to run:
cli_wallet -s wss://openledger.hk/ws

I got the return as:
TLS handshake failed

I wonder whether I could use the cli_wallet without setup my own witness_node?

Thanks