Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON-RPC: Missing Chainspec methods #5539

Closed
2 tasks done
ryanleecode opened this issue Aug 30, 2024 · 2 comments
Closed
2 tasks done

JSON-RPC: Missing Chainspec methods #5539

ryanleecode opened this issue Aug 30, 2024 · 2 comments
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.

Comments

@ryanleecode
Copy link

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

Endpoint: wss://westend-people-rpc.polkadot.io

[19:51:47.876] TRACE (#2): 1-2024-08-30T23:51:47.855Z->>-{"jsonrpc":"2.0","id":"1-2","method":"chainSpec_v1_chainName","params":[]}
[19:51:47.876] TRACE (#3): 1-2024-08-30T23:51:47.855Z->>-{"jsonrpc":"2.0","id":"1-3","method":"chainSpec_v1_genesisHash","params":[]}
[19:51:47.877] TRACE (#4): 1-2024-08-30T23:51:47.855Z->>-{"jsonrpc":"2.0","id":"1-4","method":"chainSpec_v1_properties","params":[]}
[19:51:48.431] TRACE (#14): 1-2024-08-30T23:51:48.427Z-<<-{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":"1-4"}
[19:51:48.439] ERROR (#0) getChainSpecData=565ms:
UnknownException: An unknown error occurred
    at new YieldableError (:1:28)
    at new UnknownException (/home/ryan/Documents/Repositories/paritytech/identity-backend/node_modules/effect/dist/esm/internal/core.js:1130:7)
    at <anonymous> (/home/ryan/Documents/Repositories/paritytech/identity-backend/node_modules/effect/dist/esm/internal/core-effect.js:594:134)
    at processTicksAndRejections (:12:39)
    at getChainSpecData (/home/ryan/Documents/Repositories/paritytech/identity-backend/src/rpc.ts:22:14) {
  [cause]: RpcError: Method not found
      at new RpcError (/home/ryan/Documents/Repositories/paritytech/identity-backend/node_modules/@polkadot-api/substrate-client/dist/esm/client/RpcError.mjs:6:5)
      at onMessage (/home/ryan/Documents/Repositories/paritytech/identity-backend/node_modules/@polkadot-api/substrate-client/dist/esm/client/createClient.mjs:31:39)
      at <anonymous> (/home/ryan/Documents/Repositories/paritytech/identity-backend/node_modules/@polkadot-api/logs-provider/dist/esm/with-logs-recorder.mjs:16:7)
      at onMessageProxy (/home/ryan/Documents/Repositories/paritytech/identity-backend/node_modules/@polkadot-api/json-rpc-provider-proxy/dist/esm/get-sync-provider.mjs:23
:5)
      at <anonymous> (/home/ryan/Documents/Repositories/paritytech/identity-backend/node_modules/@polkadot-api/json-rpc-provider-proxy/dist/esm/get-sync-provider.mjs:61:20
)
      at _onMessage (/home/ryan/Documents/Repositories/paritytech/identity-backend/node_modules/@polkadot-api/ws-provider/dist/node/esm/ws-provider.mjs:22:39)
}
19:51:48.534] TRACE (#16): 1-2024-08-30T23:51:48.427Z-<<-{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":"1-2"}
[19:51:48.536] TRACE (#17): 1-2024-08-30T23:51:48.427Z-<<-{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":"1-3"}

Steps to reproduce

Hit any of the chainspec_v1 endpoints

@ryanleecode ryanleecode added I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known. labels Aug 30, 2024
@ryanleecode
Copy link
Author

@paritytech/subxt-team

@niklasad1
Copy link
Member

niklasad1 commented Aug 31, 2024

Hey Ryan

It's fixed by #5205 but it probably not included in the deployed release but should be available in the next release.

Perhaps we can talk to someone to update the node to master or something to unblock you on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.
Projects
None yet
Development

No branches or pull requests

2 participants