paritytech / substrate-api-sidecar

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.
https://paritytech.github.io/substrate-api-sidecar/dist/
GNU General Public License v3.0
245 stars 151 forks source link

failed decoding electionProviderMultiPhase.submitUnsigned #492

Closed yasyzb closed 3 years ago

yasyzb commented 3 years ago

Description

{"code":500,"message":"createType(SignedBlock):: Struct: failed on block: {\"header\":\"Header\",\"extrinsics\":\"Vec\"}:: Struct: failed on extrinsics: Vec:: createType(ExtrinsicV4):: createType(Call):: Call: failed decoding electionProviderMultiPhase.submitUnsigned:: Struct: failed on args: :: Cannot construct unknown type RawSolution","stack":"Error: createType(SignedBlock):: Struct: failed on block: {\"header\":\"Header\",\"extrinsics\":\"Vec\"}:: Struct: failed on extrinsics: Vec:: createType(ExtrinsicV4):: createType(Call):: Call: failed decoding electionProviderMultiPhase.submitUnsigned:: Struct: failed on args: :: Cannot construct unknown type RawSolution\n at createTypeUnsafe (/usr/src/app/node_modules/@polkadot/types/create/createType.js:72:11)\n at RpcCore._formatOutput (/usr/src/app/node_modules/@polkadot/rpc-core/index.js:394:41)\n at callWithRegistry (/usr/src/app/node_modules/@polkadot/rpc-core/index.js:262:42)\n at runMicrotasks ()\n at processTicksAndRejections (node:internal/process/task_queues:93:5)","level":"error"}

Steps to Reproduce

curl http://127.0.0.1:8080/blocks/4355787

Expected vs. Actual Behavior

[A clear description of what you expected to happen and what actually happened.]

anhcao142 commented 3 years ago

Hi, I encounter the same error

Update: upgrade to version 4.0.2 didn't resolve the problem

emostov commented 3 years ago

I cannot reproduce this issue.

I tried v4.0.0, v4.0.1, and v4.0.2 - they all worked for me against blocks/4355787 on the polkadot network.

emostov commented 3 years ago

Does the issue resolve if you upgrade the node to the latest client release?

anhcao142 commented 3 years ago

I can't reach my server right now. I'll update as soon as possible

yasyzb commented 3 years ago

Does the issue resolve if you upgrade the node to the latest client release?

Thanks, it resolved when I upgrade to v4.0.2. (My old sidecar version is v3.0.4)

anhcao142 commented 3 years ago

@emostov Upgrade Polkadot to 0.8.29 and Substrate to 4.0.2 solve the problem for me. My previous version was 0.8.26-rc2. Kind of weird since the release note doesn't force you to upgrade

emostov commented 3 years ago

@emostov Upgrade Polkadot to 0.8.29 and Substrate to 4.0.2 solve the problem for me. My previous version was 0.8.26-rc2. Kind of weird since the release note doesn't force you to upgrade

@anhcao142 what version of Sidecar where you on before? Just trying to figure out if it was upgrading Sidecar that fixed it or upgrading the node

anhcao142 commented 3 years ago

It's 3.0.4. Hope that help

yeefea commented 3 years ago

I have the same problem at block 4355787. My sidecar version was v3.0.4 and the problem was solved by upgrading it to v4.0.4.