Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cardano socket "gotcha" #22

Open
b00kdev opened this issue Feb 7, 2024 · 0 comments
Open

Cardano socket "gotcha" #22

b00kdev opened this issue Feb 7, 2024 · 0 comments

Comments

@b00kdev
Copy link

b00kdev commented Feb 7, 2024

Hello! I noticed an interesting "gotcha" that I haven't done any sort of digging into, but just wanted to mention in case you want to add something to the docs or perhaps it's something that can be handled in the code.

If you spin up a Cardano node resource (ie: a preview node running 8.1.2) and then use dmtr to open a socket:

dmtr cardano connect-node-socket preview-stable

then setup some environment variables:

export CARDANO_NODE_SOCKET_PATH=/path/to/dmtr.socket

and then run a command:

cardano-cli query tip --testnet-magic 2

the dmtr process will crash with the following error:

2024-02-07T19:30:03.358253Z  INFO connect: dmtrctl::cardano::connect_node_socket: new client connected to socket
Error:   x couldn't connect to TLS server
  `-> tls handshake eof

If you go into the Demeter web portal and enable the "Expose Node to Client" option, then everything works as expected:

rj@49ad38f7af17:~$ cardano-cli query tip --testnet-magic 2
{
    "block": 1747162,
    "epoch": 470,
    "era": "Babbage",
    "hash": "ba6ce6c35684c3b274f5753fccb3fcb3c35e33de5906689dc6eeb850dbf28778",
    "slot": 40680148,
    "slotInEpoch": 72148,
    "slotsToEpochEnd": 14252,
    "syncProgress": "100.00"
}

Please let me know if you would like any further details and also feel free to close. Just wanted to make sure you guys were aware. Thanks for Demeter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant