Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

jsonrpc return -32600 #11873

Open
jiazechen opened this issue Sep 16, 2020 · 1 comment
Open

jsonrpc return -32600 #11873

jiazechen opened this issue Sep 16, 2020 · 1 comment

Comments

@jiazechen
Copy link

OpenEthereum version**: 3.0.1
OS: Linux

I find when omit "jsonrpc":"2.0" in params,
node returned me:

{
"error": {
"code": -32600,
"message": "Unsupported JSON-RPC protocol version"
},
"id": "335553604008694074530677"
}

but , at geth it's ok , and with "jsonrpc":"2.0" in params at openethereum , it's ok too.


request:

{"method":"eth_call","params":[{"to":"0xeefba1e63905ef1d7acba5a8513c70307c1ce441","data":"0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000065770b5283117639760bea3f867b69b3697a91dd0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000000000000000000000000000eefba1e63905ef1d7acba5a8513c70307c1ce441000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000244d2301cc0000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000"},"latest"],"id":"335553604008694074530677"}

response:

{
"error": {
"code": -32600,
"message": "Unsupported JSON-RPC protocol version"
},
"id": "335553604008694074530677"
}

request:

{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0xeefba1e63905ef1d7acba5a8513c70307c1ce441","data":"0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000065770b5283117639760bea3f867b69b3697a91dd0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000000000000000000000000000eefba1e63905ef1d7acba5a8513c70307c1ce441000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000244d2301cc0000000000000000000000008d791442ef0aa793d57ffab7b4bbed260ae1a36800000000000000000000000000000000000000000000000000000000"},"latest"],"id":"335553604008694074530677"}

response

{
"jsonrpc": "2.0",
"id": "335553604008694074530677",
"result": "0x0000000000000000000000000000000000000000000000000000000000a5e77000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000"
}


test website:

https://app.uniswap.org/

@rakita
Copy link

rakita commented Sep 23, 2020

This is part of API, nothing to be done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@rakita @jiazechen and others