json rpc error code:-32600
Closed this issue · 1 comments
Any of JSON RPC curl calls give me a result {"jsonrpc":"2.0","error":{"code":-32600,"message":"invalid character '\'' looking for beginning of value"}}
I've trued many ways: esaped " with /", different calls and geth rpc profiles. Can you help me with solving this problem?
variants I've tried:
curl -H 'Content-Type: application/json' -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' http://127.0.0.1:8545
curl -H "Content-Type: application/json" --data "{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":42}" http://127.0.0.1:8545
and without -H "Content-Type: application/json"
and many others
Please see https://github.com/ethereum/wiki/wiki#issues-and-pull-requests for why this was closed.