geth: Fatal: invalid genesis file: invalid character 'â' looking for beginning of object key string

0 votes

Hey my geth command is not working:

geth --datadir ./data init ./custom_genesis.json
Fatal: invalid genesis file: invalid character 'â' looking for beginning of object key string
Dec 5, 2018 in Blockchain by slayer
• 29,050 points
428 views

1 answer to this question.

0 votes
Looks like your editor is adding characters automatically. Try nano editor. And if you have copied the code and pasted, there is a chance that the character format might have also been copied. Try typing the code or paste the code without format.
answered Dec 5, 2018 by Omkar
• 67,380 points

Related Questions In Blockchain

0 votes
1 answer

What could be the best term to use for the collection of contracts in a .sol file?

module - don't think so. Because module ...READ MORE

answered Jun 1, 2018 in Blockchain by Shashank
• 10,350 points
34 views
0 votes
1 answer

geth attach Fatal: Unable to attach to remote geth: no known transport for URL scheme "c"

Seems like geth.ipc path is not set. When ...READ MORE

answered Jan 16 in Blockchain by Omkar
• 67,380 points
85 views
+1 vote
2 answers
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
138 views
0 votes
1 answer
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6 in Blockchain by saeedi
• 120 points

edited Mar 6 by Omkar 358 views
0 votes
1 answer

geth: Fatal: Failed to read genesis file: open “/home/edureka/privatechain/”: no such file or directory

Use this: geth --datadir ./data init ./custom_genesis.json READ MORE

answered Dec 5, 2018 in Blockchain by Omkar
• 67,380 points
251 views
0 votes
1 answer

Getting Invalid number of parameters for “undefined” when deploying smart contract

Try something like this for contracts that ...READ MORE

answered Oct 10, 2018 in Blockchain by Omkar
• 67,380 points
473 views