Author Topic: Can I access public nodes in CLI_wallet?  (Read 3167 times)

0 Members and 1 Guest are viewing this topic.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4572
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
BitShares committee member: abit
BitShares witness: in.abit

Offline Skyscraper_Farms

  • Newbie
  • *
  • Posts: 2
    • View Profile
Getting this same handshake failed message. Anyone figure this out?

Offline sahkan

  • Sr. Member
  • ****
  • Posts: 247
    • View Profile
    • BitShares DEX
Maybe you have a firewall blocking the connection?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12920
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
If you use wss:// your server needs to tunnel through SSL .. try with ws:// instead

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
Up up, anyone can help in this topic?

Thanks a lot!

Offline questionsquestions

  • Jr. Member
  • **
  • Posts: 39
    • View Profile
Any core dev's have any thoughts?

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
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?

Offline questionsquestions

  • Jr. Member
  • **
  • Posts: 39
    • View Profile
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?
« Last Edit: June 14, 2017, 05:44:50 pm by questionsquestions »

Offline sahkan

  • Sr. Member
  • ****
  • Posts: 247
    • View Profile
    • BitShares DEX
Try
Code: [Select]
./programs/cli_wallet/cli_wallet -s wss://dexnode.net/ws
your connection might be timing out to that node.

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
Up up, does anyone know?

I will appreciate it very much.

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
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