# Attempting to get Tip from mainnet throws error

**URL:** <https://forum.cardano.org/t/attempting-to-get-tip-from-mainnet-throws-error/36725>\
**Category:** Operate a Stake Pool\
**Created:** [29 July 2020 22:14 UTC](https://forum.cardano.org/t/attempting-to-get-tip-from-mainnet-throws-error/36725 "2020-07-29T22:14:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_Walker](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jeremy_walker/32/15560_2.png) [@Jeremy\_Walker](https://forum.cardano.org/u/Jeremy_Walker)\
**Post date:** [29 July 2020 22:14 UTC](https://forum.cardano.org/t/attempting-to-get-tip-from-mainnet-throws-error/36725/1 "2020-07-29T22:14:27Z")

</div>

So I can’t see any information other than the Ouroboros general error. But I have my node running and it’s extending the chain etc, but I am attempting to do some initial setups for the stake pool.

I have generated all kinds of keys from all of the documentation, but at the point where I need to check if it is syncing with the cli I get an error:

_Note: This is on Windows 10 machine in powershell_

So I issue the command: .\cardano-cli shelley query tip --mainnet

And rather that spitting out the slotNo/blockNo etc, I get the following:

cardano-cli.exe: DecoderFailure (Handshake) ServerAgency TokConfirm) (DeserialiseFailure 2 “codecHandshake.Confirm: unexpected key”)

Wondering if anyone has had this, is having this, and maybe has a solution or a reason why this happens?

---

<div class="post-metadata">

**Author:** ![Jeremy\_Walker](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jeremy_walker/32/15560_2.png) [@Jeremy\_Walker](https://forum.cardano.org/u/Jeremy_Walker)\
**Post date:** [30 July 2020 03:48 UTC](https://forum.cardano.org/t/attempting-to-get-tip-from-mainnet-throws-error/36725/2 "2020-07-30T03:48:18Z")

</div>

Ok so I re-ran all the setup things on linux, and I think the issue is the CARDANO\_NODE\_SOCKET\_PATH setting in the system environment variables… for some reason it does NOT like it. I have even done the ‘refreshenv’ and closed powershells, then restarted everything up and tried the commands and it doesn’t work still.

First time running it on Linux worked like a charm. It’s simply the simplicity of the  
export CARDANO\_NODE\_SOCKETPATH=~/…

command
