onflow / onflow/flow-cli

Error message is wrong when block-height it too low when executing script

Open
#1,149 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Feedback
Dominant language
Go
Stars
209
Forks
87
Avg merge
1d 17h
Merged PRs (30d)
3

Description

Instructions
❌ Invalid argument: could not execute script: data unavailable for block height: the requested height (39290353) is beyond the highest indexed height(57976549)
Problem

the error message compares this agains the latest height not the earliest height

Steps to Reproduce

run any script against a block before the first block in a access/archive node

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the flow scripts execute path and reproduce the command against a block height before the first block in an access or archive node. Trace where the data-unavailable error is formed; done means the message compares the requested height with the earliest indexed height rather than the latest height.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.