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

Error in readFully method from client-utils: Rejected promise with missing vStorage data #10574

Open
Jorge-Lopes opened this issue Nov 26, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Jorge-Lopes
Copy link
Collaborator

Jorge-Lopes commented Nov 26, 2024

Describe the bug

After the changes introduced to the client-utils package in PR #10566, the readFully method from the Agoric client-utils package fails when attempting to read a vstorage node. Instead of returning the expected value, it produces a rejected promise with the following error message:

  Rejected promise returned by test. Reason:

  Error {
    code: 38,
    codespace: 'sdk',
    message: 'error code 38 reading data of published.committees.Economic_Committee.latestQuestion: no data for vstorage path: not found',
  }

To Reproduce

Steps to reproduce the behavior:

  1. Go to Draft PR Jorge/10574 read fully #10575
  2. Go to the CI action test-docker-build
  3. See error message

Expected behavior

The readFully method should correctly return the values stored in a specific node, recorded after a given block height.

Platform Environment

OS: macOS Sequoia v15.0.1
Node.js: v20.9.0
Agoric-SDK: agoric-upgrade-16av-1172-g3de052bbe8

@Jorge-Lopes
Copy link
Collaborator Author

cc: @Chris-Hibbert

@turadg
Copy link
Member

turadg commented Nov 26, 2024

After the changes introduced to the client-utils package in PR #10566, the readFully method from the Agoric client-utils package fails when attempting to read a vstorage node

I can't tell whether you're attributing the cause of this problem to #10566. Are you saying that it worked before? (i.e. Are you saying "Even after the changes…" or "Because of the changes…")

@Jorge-Lopes
Copy link
Collaborator Author

Jorge-Lopes commented Nov 26, 2024

I can't tell whether you're attributing the cause of this problem to #10566. Are you saying that it worked before? (i.e. Are you saying "Even after the changes…" or "Because of the changes…")

I am saying "Even after the changes…".
Sorry for the lack of clarity in the description.

@dckc
Copy link
Member

dckc commented Nov 26, 2024

readFully is a sort of awkward API - it lumps the results of a sequence of queries into one array, and changes in the way cosmos-sdk reports the end of the available data have made it somewhat unstable (#9024 etc.).

I hope we can migrate toward something like readHistory that provides an async iterator. If the tail end of the iterator is flaky, at least the iterations before that are useful.

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
None yet
Development

No branches or pull requests

3 participants