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

No state found for id 'finalized' #4254

Open
dapplion opened this issue Jul 6, 2022 · 3 comments
Open

No state found for id 'finalized' #4254

dapplion opened this issue Jul 6, 2022 · 3 comments
Labels
prio-medium Resolve this some time soon (tm). scope-ux Issues for CLI UX or general consumer UX.

Comments

@dapplion
Copy link
Contributor

dapplion commented Jul 6, 2022

Describe the bug

Jun-30 12:29:19.698[API]             error: Req req-3fw getStateFinalityCheckpoints error  No state found for id 'finalized'
Error: No state found for id 'finalized'
    at resolveStateId (file:///usr/app/node_modules/@chainsafe/lodestar/src/api/impl/beacon/state/utils.ts:41:11)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at getState (file:///usr/app/node_modules/@chainsafe/lodestar/src/api/impl/beacon/state/index.ts:24:12)
    at Object.getStateFinalityCheckpoints (file:///usr/app/node_modules/@chainsafe/lodestar/src/api/impl/beacon/state/index.ts:39:21)
    at Object.handler (file:///usr/app/node_modules/@chainsafe/lodestar-api/src/utils/server/genericJsonServer.ts:39:23)
@philknows philknows marked this as a duplicate of #4253 Jul 7, 2022
@philknows philknows reopened this Jul 7, 2022
@dapplion dapplion added prio-medium Resolve this some time soon (tm). scope-ux Issues for CLI UX or general consumer UX. labels Jul 13, 2022
@dapplion
Copy link
Contributor Author

dapplion commented Apr 7, 2023

This case is covered

case "finalized": {
const state = stateCache.get(forkChoice.getFinalizedBlock().stateRoot) ?? null;

A fallback would be to load the state from disk if not found

@philknows
Copy link
Member

Is this still an issue? I'm not seeing this anymore as of v1.11.3

@nflaig
Copy link
Member

nflaig commented Oct 31, 2023

This is still a problem until a solution like #6033 is implemented, related issue #5846

curl -s http://localhost:9596/eth/v1/beacon/states/finalized/finality_checkpoints | jq
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "No state found for id 'finalized'"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio-medium Resolve this some time soon (tm). scope-ux Issues for CLI UX or general consumer UX.
Projects
None yet
Development

No branches or pull requests

3 participants