Error on the Query the balance of an address (Solved)

I install the 1.18 Cardano with mainnet config. Clean install.
So far so good, except when I type try to check the balance with this command

cardano-cli shelley query utxo \
    --address $(cat payment.addr) \
    --mainnet

I got this error message

A query from a certain era was applied to a ledger from a different era: EraMismatch {ledgerEraName = “Byron”, otherEraName = “Shelley”}

Anyone facing the same problem? And any idea how to fix this?

2 Likes

Same problem here. Anyone know a fix?

1 Like

Facing the same issue, will try to spin a new node.

Same here with brand new passive node.

I removed db, restarted passive node, did everything like on this page https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/keys_and_addresses.html and still getting A query from a certain era was applied to a ledger from a different era: EraMismatch {ledgerEraName = "Byron", otherEraName = "Shelley"}

Has anyone solved this problem? I tried from scratch and so far no success

Today morning I checked and found it solved:

` cardano-cli shelley query utxo --address (cat payment.addr) --mainnet
TxHash TxIx Lovelace

----------------------------------------------------------------------------------------`
And time solved the problem. I was told that probably my node was not in sync and that was true.

So wait for your passive node to fetch entire blockchain.

1 Like

Thanks, now it works

I’ll wait tomorrow probably it will sync everything
Thanks

How long did you have to wait till you saw it working? 30 mins and no success yet…

A couple of good hours. Your node should show tip numbers as high like: Chain extended, new tip: (Point 4573980...

1 Like

I just want to tell you that the command are now running well. And I leave about 12 hours (I don’t know for sure how many hours it takes). But It went well right now. thank you guys

Same error here. Hoping that once the node is synchronised the error will disappear.

Just wait for 12 hours or more. It will disappear. Trust me. I’ve been there

1 Like

It worked like a song!