Skip to content

fix(api): invalid-epoch-slot-error #7941

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

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

bomanaps
Copy link
Contributor

Motivation

Description
This PR fixes an inconsistency in Lodestar's Beacon-API behavior when querying:

curl "http://127.0.0.1:9596/eth/v1/beacon/states/head/committees?epoch=2&slot=118"

Previously, Lodestar would return a 500 Internal Server Error when the provided slot did not belong to the given epoch (e.g., epoch=2&slot=118), due to an unhandled EPOCH_CONTEXT_ERROR_DECISION_ROOT_EPOCH_OUT_OF_RANGE error.

Screenshot 2025-06-10 at 08 15 05 Screenshot 2025-06-10 at 08 14 33

Closes #7882

Steps to test or reproduce

@bomanaps bomanaps requested a review from a team as a code owner June 10, 2025 07:42
@CLAassistant
Copy link

CLAassistant commented Jun 10, 2025

CLA assistant check
All committers have signed the CLA.

@bomanaps
Copy link
Contributor Author

Hello @nflaig Could you please review this when you have time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent Response of Endpoint /eth/v1/beacon/states/{state_id}/committees
2 participants