-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Substrate RPC : Response too big, Exceeded max limit of 15728640 #11842
Comments
The substrate/client/rpc-api/src/state/mod.rs Lines 40 to 43 in 37cca71
Like the unsafe IMHO these load-bearing, free-for-all (and thus deprecated) methods should to be hidden behind the unsafe flag because of the overhead. In this case the key provided is |
polkadot/utlls/staking-miner v0.9.27 has the same problem on Polkadot with
|
That is from the node itself, not the API layers interacting with RPC - Generally the RPC responses are limited as to not DDOS the nodes. staking state can indeed be "quite" large, as seen here, so unless the limit is adjusted upwards, there will be a problem if a single state entry exceeds the limits. |
this call will get the response: curl --location --request POST 'https://rpc.polkadot.io' --header 'Content-Type: application/json' --data-raw '{"jsonrpc":"2.0","id":18,"method":"state_getStorage","params":["0xede8e4fdc3c8b556f0ce2f77fc2575e3b3d1c643c0d45e2bb9269ac86c1dcda0b4def25cfda6ef3a00000000","0x5e55c8c7b5f523cd710e29516f2f0c559c24b7c0ae819926f451e9428f01c4d3"]}' Above works on command line, but jsonrpsee throws "Response is too big" error |
So you mean there is a but in the staking miner? Then please open an issue for it. |
@ggwpez thanks for that, I'll try that on the polkadot validator and see if it helps. |
As noted this is fixable with |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
error response ⬇️
curl request ⬇️
Steps to reproduce
Hit the above curl request
The text was updated successfully, but these errors were encountered: