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

0 Members and 1 Guest are viewing this topic.

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
Can I access public nodes in CLI_wallet?
« 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

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
Re: Can I access public nodes in CLI_wallet?
« Reply #1 on: June 13, 2017, 10:53:08 pm »
Up up, does anyone know?

I will appreciate it very much.

Offline sahkan

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • BitShares DEX
Re: Can I access public nodes in CLI_wallet?
« Reply #2 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.

Offline questionsquestions

  • Jr. Member
  • **
  • Posts: 39
    • View Profile
Re: Can I access public nodes in CLI_wallet?
« Reply #3 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?
« Last Edit: June 14, 2017, 05:44:50 pm by questionsquestions »

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
Re: Can I access public nodes in CLI_wallet?
« Reply #4 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?

Offline questionsquestions

  • Jr. Member
  • **
  • Posts: 39
    • View Profile
Re: Can I access public nodes in CLI_wallet?
« Reply #5 on: June 19, 2017, 10:15:04 am »
Any core dev's have any thoughts?

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
Re: Can I access public nodes in CLI_wallet?
« Reply #6 on: July 13, 2017, 07:53:34 am »
Up up, anyone can help in this topic?

Thanks a lot!

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12634
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Can I access public nodes in CLI_wallet?
« Reply #7 on: July 13, 2017, 01:57:37 pm »
If you use wss:// your server needs to tunnel through SSL .. try with ws:// instead
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline sahkan

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • BitShares DEX
Re: Can I access public nodes in CLI_wallet?
« Reply #8 on: July 13, 2017, 03:41:50 pm »
Maybe you have a firewall blocking the connection?

Offline Skyscraper_Farms

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Can I access public nodes in CLI_wallet?
« Reply #9 on: June 20, 2018, 05:45:56 pm »
Getting this same handshake failed message. Anyone figure this out?

Online abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3295
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
BTS account: abit
BTS committee member: abit
BTS witness: in.abit