AesonException "Error in $: parsing PartialNodeConfiguration failed, expected Object, but encountered String"

Hello everyone!

I am completely new to cardano and I was following the guide on developers.cardano.org on how to install cardano node and run it. I got to the point of running a node, but after running the following commands:

cardano-node run \

–config /Users/mac/cardano/testnet-config.json
–database-path /Users/mac/cardano/db/
–socket-path /Users/mac/cardano/db/node.socket
–host-addr 127.0.0.1
–port 1337
–topology /Users/mac/cardano/testnet-topology.json

I got the following AesonException:
Error in $: parsing PartialNodeConfiguration failed, expected Object, but encountered String

Unfortunately, I couldn’t find an answer on the net or here. So, can you help me - what could be a problem here?

Use 0.0.0.0 and \ at the end of each line except last one

Hello!

Thank you for the answer! Unfortunately, it didn’t solve the issue. Do you have any other ideas where to look for an error?

What git tag or commit are you trying to run? You should be using the 1.29.0 tag.

Yes, I am using the newest version of git tag 1.29.0.
I’ve found what the problem was, so if anyone encounters something similar, here is the thing:

Before running the Cardano node, I used the curl command to download four configuration files from the URLs provided in the guide. But as the URLs have moved to a new address, it downloaded HTML code saying that the URLs have changed instead of JSON file - so basically String instead of Object.

I used new URLs, and the problem was gone. And now everything is working fine.

1 Like