Skip to content

No items under pallet returns an error #1885

Description

@Imod7

Description
If no items are found under a Pallet this is not necessarily an error.

Example
When connected to Kusama, the request /pallets/ParaSessionInfo/errors?at=29205809 returns:

{
  "code": 400,
  "message": "no queryable errors items found for palletId \"paraSessionInfo\"",
  "stack": "BadRequestError: no queryable errors items found for palletId \"paraSessionInfo\"\n    at PalletsErrorsService.....
  "level": "error"
}

Other examples with Pallets are the following: ParachainsOrigin, Parameters.

Suggestion
Return an empty array of items instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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