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

Method not found when calling chain_getRuntimeVersion #1683

Closed
Tracked by #1682
xlc opened this issue Feb 5, 2019 · 4 comments
Closed
Tracked by #1682

Method not found when calling chain_getRuntimeVersion #1683

xlc opened this issue Feb 5, 2019 · 4 comments
Assignees
Labels
I3-bug The node fails to follow expected behavior.
Milestone

Comments

@xlc
Copy link
Contributor

xlc commented Feb 5, 2019

chain_getRuntimeVersion no longer exists, possibly related to #1679

curl -H 'Content-Type: application/json' -d '{ "jsonrpc": "2.0", "method":"chain_getRuntimeVersion", "params":[], "id": 1 }' http://localhost:9933/
{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":1}

@jacogr Maybe should fix it on polkadot.js side to use state_getRuntimeVersion and remove chain_getRuntimeVersion? but state.getRuntimeVersion is missing anyway

@jacogr
Copy link
Contributor

jacogr commented Feb 5, 2019

Ok, this is problematic. Since the APIs needs to support both old and new chains and this is not detectable without a call. (If moved and not just deprecated with new version)

If this was a move of endpoints, will look at it a bit later to try and find a solution for this ASAP since we seem to have broken apps out there.

@bkchr
Copy link
Member

bkchr commented Feb 5, 2019

Hmm, the alias still exists. So the function should also still exist. Sounds like a bug.
@ascjones any ideas why this is missing?

@bkchr bkchr added the I3-bug The node fails to follow expected behavior. label Feb 5, 2019
@bkchr bkchr added this to the 1.0gamma milestone Feb 5, 2019
@ascjones
Copy link
Contributor

ascjones commented Feb 5, 2019

Probably a bug in jsonrpc-derive. Investigating.

@jacogr
Copy link
Contributor

jacogr commented Feb 5, 2019

@ascjones Tested, does the trick for me on latest master, thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I3-bug The node fails to follow expected behavior.
Projects
None yet
Development

No branches or pull requests

4 participants