Skip to content

SortedMap.range throws StateNotConstructed if you try a range query first. #67

Description

@katfang

To Reproduce
Try

await SortedMap.ref("sorted-map").range(context, limit=1)

Get StateNotConstructed error.

Expected behavior
Expect ... maybe an error saying that there's no items, or an empty list of items, but definitely not a StateNotConstructed error for a state that doesn't have a constructor.

Impact
How severely does this bug impact your use of Reboot?

  • It's not having any negative impact
  • It's annoying
  • It's a serious problem
  • It makes it impossible for me to use Reboot

Please explain why?

Alright for me because I happen to be accessing from a place where I can delay trying to read until after I've actually written.

Screenshots
If applicable, add screenshots to help explain your problem.

Client
Please complete the following information:

  • OS: [e.g. macOS 14.6.1]
  • Client [e.g. curl, grpcurl, Chrome, Safari, ...]
  • Client version [e.g. 22.0.1]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions