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

failed to get logs for block #blockNumber #1647

Closed
locrianlocs opened this issue Jun 22, 2023 · 3 comments
Closed

failed to get logs for block #blockNumber #1647

locrianlocs opened this issue Jun 22, 2023 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@locrianlocs
Copy link

Describe the bug
Starting from last week, public RPC is giving error while getting logs for some specific blocks.

To Reproduce
Block 31644089 is one of them.

curl 'https://api.avax.network/ext/bc/C/rpc' -H 'Content-Type: application/json' -XPOST --data '{"method":"eth_getLogs","params":[{"fromBlock":"0x1e2d9b9","toBlock":"0x1e2d9b9"}],"id":491163,"jsonrpc":"2.0"}'

Expected behavior
Instead of returning error, return empty array if there are no logs or transactions. Currently there is no way of knowing why it's failing from the error message.

To best protect the Avalanche community security bugs should be reported in accordance to our Security Policy

@locrianlocs locrianlocs added the bug Something isn't working label Jun 22, 2023
@github-project-automation github-project-automation bot moved this to Backlog 🗄 in Ski Patrol Jun 22, 2023
hexfusion pushed a commit to hexfusion/avalanchego that referenced this issue Jun 22, 2023
@aaronbuchwald
Copy link
Collaborator

Thanks for reporting!

We've fixed this bug in this PR ava-labs/coreth#270 and deployed to the Public APIs. We're planning to put out the official release next week.

@danlaine danlaine moved this from Backlog 🗄 to Done ✅ in Ski Patrol Jun 26, 2023
@StephenButtolph StephenButtolph added this to the v1.10.4 milestone Jun 27, 2023
@bimlas
Copy link

bimlas commented Jul 4, 2023

@aaronbuchwald

When will the fix released? Is it okay to downgrade to v1.10.2 until it comes?

@StephenButtolph
Copy link
Contributor

When will the fix released? Is it okay to downgrade to v1.10.2 until it comes?

We try to keep the "Due Date" of our release milestones up-to-date with our target release time: https://github.com/ava-labs/avalanchego/milestone/5.

It's fine to downgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Archived in project
Development

No branches or pull requests

5 participants