AnswerBun.com

More verbose logging in tezos-client

Tezos Asked by Thorkil Værge on December 8, 2020

I have some problems connecting to a node through tezos-client. Specifically I cannot succesfully run tezos-client -l -A rpcalpha.tzbeta.net -P 443 -S config update to connect to a testnet node. It fails on a GET request to https://rpcalpha.tzbeta.net:443/chains/main/blocks/head/protocols (Neither of the two HTTP requests are sent as the TCP or SSL connection is never established).

>>>>0: https://rpcalpha.tzbeta.net:443/version
>>>>1: https://rpcalpha.tzbeta.net:443/chains/main/blocks/head/protocols
Warning:
  Failed to acquire the protocol version from the node
  Rpc request failed:
     - meth: GET
     - uri: https://rpcalpha.tzbeta.net:443/chains/main/blocks/head/protocols
     - error: Unable to connect to the node: "Unix.Unix_error(Unix.ETIMEDOUT, "connect", "")"

But when I run curl -v https://rpcalpha.tzbeta.net:443/chains/main/blocks/head/protocols I get a 200 OK response. curl -v https://rpcalpha.tzbeta.net:443/version also works.

It would be easier for me to debug the problem, which is probably network related, if I could get verbose logs of what tezos-client is doing, specifically the HTTP requests’ headers would be useful. Is that possible?

One Answer

You can add argument -l --log-requests: log all requests to the node to tezos-client to see the connection.

Although this won't show you the headers, you can see the tezos-client -A rpcalpha.tzbeta.net ... tries to connect to http://rpcalpha.tzbeta.net:8732. To connect to https://rpcalpha.tzbeta.net:443 instead, you will want to add the following arguments:

  • -S --tls: use TLS to connect to node.
  • -P --port <number>: RPC port of the node with 443

To see the list of all available arguments, check out tezos-client --help.

Answered by Tomáš Zemanovič on December 8, 2020

Add your own answers!

Related Questions

About delegating XTZ

3  Asked on December 27, 2021 by nguyen-minh-dung

 

Why won’t tezos-client find my Ledger Nano S?

2  Asked on December 18, 2021 by tzduzit

   

How to calculate the total locked XTZ?

0  Asked on December 5, 2021 by innovativerp

   

How to send XTZ from fundraiser wallet

2  Asked on December 5, 2021 by nick-doulas

 

Question on receiving first staked reward

1  Asked on November 15, 2021 by clann

     

Why can’t I move my XTZ?

1  Asked on November 7, 2021 by user5185

 

Calling view of Fa1.2 contract

1  Asked on August 20, 2021

   

experience with AWS cloudHSM and remote-signer

0  Asked on August 20, 2021 by romain-braud

   

HTTP status codes for failing requests

0  Asked on August 20, 2021 by ivan-gromakovskii

   

Tezos GigaNode snapshots – Quick “latest” URL?

0  Asked on August 20, 2021 by babell

 

FA2 Permission Policies & Hook permission Behaviour

1  Asked on August 20, 2021 by vinnyson

 

Tezos.get_entrypoint_opt in Ligo issue

3  Asked on August 20, 2021 by anastasia-kondaurova

     

Trouble activating account on carthagenet

1  Asked on August 20, 2021 by lucasms

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir