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

Substrateinterface block info fetching bug #4975

Closed
2 tasks done
GeorgeVSV opened this issue Jul 8, 2024 · 1 comment
Closed
2 tasks done

Substrateinterface block info fetching bug #4975

GeorgeVSV opened this issue Jul 8, 2024 · 1 comment
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.

Comments

@GeorgeVSV
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

I currently face issues with fetching block information via polkadot websocket endpoint (using substrateinterface lib in Python) for blocks with specific transaction type, here are few samples:

Block number : 21473809
Transaction type : convictionvoting (remove_vote)
Error text: ValueError: Index '20'' not present in Enum type mapping

Block number : 21473810
Transaction type : balances (transfer_allow_death)
Error text: RemainingScaleByteEmptyException: Decoding - Current offset: 108 / length: 148

I would be grateful for any help

Steps to reproduce

ENDPOINT= "wss://rpc.polkadot.io"
endpoint = substrateinterface.SubstrateInterface(url=ENDPOINT)
block_info = endpoint.get_block(block_number=21473810)
block_info

@GeorgeVSV GeorgeVSV added I10-unconfirmed Issue might be valid, but it's not yet known. I2-bug The node fails to follow expected behavior. labels Jul 8, 2024
@bkchr
Copy link
Member

bkchr commented Jul 8, 2024

Please open a bug in the relevant repo for the python interface.

@bkchr bkchr closed this as completed Jul 8, 2024
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