# Version Data Mismatch error (testnet)

**URL:** <https://forum.cardano.org/t/version-data-mismatch-error-testnet/53499>\
**Category:** Setup a Stake Pool\
**Created:** [14 March 2021 13:35 UTC](https://forum.cardano.org/t/version-data-mismatch-error-testnet/53499 "2021-03-14T13:35:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steak](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/steak/32/30606_2.png) [@steak](https://forum.cardano.org/u/steak)\
**Post date:** [14 March 2021 13:35 UTC](https://forum.cardano.org/t/version-data-mismatch-error-testnet/53499/1 "2021-03-14T13:35:33Z")

</div>

Hi guys - I’m working my way through the new pool tutorial, and have hit a sticking point when I try to get the protocol details.

I run this command:  
`cardano-cli shelley query protocol-parameters --testnet-magic 42 --out-file protocol.json`

And get:  
“HandshakeError (Refused NodeToClientV\_8 “version data mismatch: NodeToClientVersionData {networkMagic = NetworkMagic {unNetworkMagic = 1097911063}} /= NodeToClientVersionData {networkMagic = NetworkMagic {unNetworkMagic = 42}}”)”

I’m running exactly what’s in the tutorial but I guess something’s moved on since then. Can someone point me in the right direction please?

Cheers 🙂

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [14 March 2021 13:37 UTC](https://forum.cardano.org/t/version-data-mismatch-error-testnet/53499/2 "2021-03-14T13:37:37Z")

</div>

Delete shelley, try Mary-era

Cheers,

---

<div class="post-metadata">

**Author:** ![steak](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/steak/32/30606_2.png) [@steak](https://forum.cardano.org/u/steak)\
**Post date:** [14 March 2021 14:04 UTC](https://forum.cardano.org/t/version-data-mismatch-error-testnet/53499/3 "2021-03-14T14:04:10Z")

</div>

Thanks, I gave that a go, and I think the problem might be the testnet-magic part now - it gives me the same error, but if I drop the testnet-magic off the end it says it needs either mainnet or testnet-magic and a number afterwards.

Latest version of my command: `cardano-cli query protocol-parameters --mary-era --out-file protocol.json --testnet-magic 42`

---

<div class="post-metadata">

**Author:** ![steak](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/steak/32/30606_2.png) [@steak](https://forum.cardano.org/u/steak)\
**Post date:** [14 March 2021 14:04 UTC](https://forum.cardano.org/t/version-data-mismatch-error-testnet/53499/4 "2021-03-14T14:04:54Z")

</div>

Update - it looks like whatever “testnet magic” is, the value should now be 1097911063. This now works for me:

`cardano-cli query protocol-parameters --mary-era --out-file protocol.json --testnet-magic 10979110632`
