Skip to content
New issue

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

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

Already on GitHub? # to your account

[Rust SDK] block fetching #15548

Open
0xmemorygrinder opened this issue Dec 9, 2024 · 1 comment
Open

[Rust SDK] block fetching #15548

0xmemorygrinder opened this issue Dec 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@0xmemorygrinder
Copy link

🐛 Bug

I use the aptos rust sdk to fetch a block at a specific height. Everything works fine for various blocks, however I get a parse error on this height : 261400138.

I manually downloaded the block from the rpc and evrything seems good.
I tried with various RPCs, to be sure the problem was not linked to this.

The issue seems to be a field that is optional but not marked as it for serde.

To reproduce

Code snippet to reproduce

let block = self.rest_client.get_block_by_height(261400138, true).await?;

Stack trace/error message

RestClientError(Unknown(error decoding response body: missing field type at line 1 column 109135))

Expected Behavior

The block should be parsed and usable as others.

System information

Please complete the following information:

  • Aptos Core Version : devnet branch
  • Rust Version: 1.81
  • Computer OS: ubuntu
@0xmemorygrinder 0xmemorygrinder added the bug Something isn't working label Dec 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@0xmemorygrinder and others