BitShares Forum

Main => Technical Support => Topic started by: yangyinzd on June 12, 2017, 08:03:48 am

Title: Can I access public nodes in CLI_wallet?
Post by: yangyinzd on June 12, 2017, 08:03:48 am
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
Title: Re: Can I access public nodes in CLI_wallet?
Post by: yangyinzd on June 13, 2017, 10:53:08 pm
Up up, does anyone know?

I will appreciate it very much.
Title: Re: Can I access public nodes in CLI_wallet?
Post by: sahkan on June 14, 2017, 06:16:12 am
Try
Code: [Select]
./programs/cli_wallet/cli_wallet -s wss://dexnode.net/ws
your connection might be timing out to that node.
Title: Re: Can I access public nodes in CLI_wallet?
Post by: 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
Code: [Select]
cli_wallet -s {any-websocket-server}
The error:

Code: [Select]
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?
Title: Re: Can I access public nodes in CLI_wallet?
Post by: yangyinzd on June 17, 2017, 07:53:19 am
Yes, I got the same error for all public source:  TLS handshake failed

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
Code: [Select]
cli_wallet -s {any-websocket-server}
The error:

Code: [Select]
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?
Title: Re: Can I access public nodes in CLI_wallet?
Post by: questionsquestions on June 19, 2017, 10:15:04 am
Any core dev's have any thoughts?
Title: Re: Can I access public nodes in CLI_wallet?
Post by: yangyinzd on July 13, 2017, 07:53:34 am
Up up, anyone can help in this topic?

Thanks a lot!
Title: Re: Can I access public nodes in CLI_wallet?
Post by: xeroc on July 13, 2017, 01:57:37 pm
If you use wss:// your server needs to tunnel through SSL .. try with ws:// instead
Title: Re: Can I access public nodes in CLI_wallet?
Post by: sahkan on July 13, 2017, 03:41:50 pm
Maybe you have a firewall blocking the connection?
Title: Re: Can I access public nodes in CLI_wallet?
Post by: Skyscraper_Farms on June 20, 2018, 05:45:56 pm
Getting this same handshake failed message. Anyone figure this out?
Title: Re: Can I access public nodes in CLI_wallet?
Post by: abit on June 20, 2018, 07:45:42 pm
Getting this same handshake failed message. Anyone figure this out?

https://github.com/bitshares/bitshares-core/issues/314#issuecomment-336668978