Skip to content

PDP: error when get-proof-set without a file added to it #502

Open
@longfeiWan9

Description

@longfeiWan9

Checklist

  • This is not a question or a support request. If you have any Curio related questions, please ask in the discussion forum.
  • This is not a new feature request. If it is, please file a feature request instead.
  • This is not an enhancement request. If it is, please file a improvement suggestion instead.
  • I have searched on the issue tracker and the discussion forum, and there is no existing related issue or discussion.
  • I am running the Latest release, or the most recent RC(release candidate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
  • I did not make any code changes to curio.

Curio component

  • PoRep Pipeline
  • Snap Deals
  • Market
  • IPNI provider
  • Curio UI
  • Other

Curio Version

build curio from the main branch.

Describe the Bug

After creating a pdp proofset, I tried to get the information for this proofset before adding a file to it.

But it throws an error instead of returning a proper status. I think it should return something normal even without any files or roots added to this proofset.

Logging Information

./pdptool get-proof-set --service-url https://yablu.net --service-name pdp-longfei 189
error: failed to get proof set, status code 500: Failed to retrieve next challenge epoch: can't scan into dest[0]: cannot scan NULL into *int64

Repo Steps

  1. Run ./pdptool create-proof-set ....
  2. Then run ./pdptool get-proof-set
  3. I will return error error: failed to get proof set, status code 500: Failed to retrieve next challenge epoch: can't scan into dest[0]: cannot scan NULL into *int64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions