Skip to content

[BUG] 400 error on /cosmos/tx/v1beta1/txs/block/ with block with no transactions #3239

@h45hc47

Description

@h45hc47

Seid version
name: sei
server_name: seid
version: v6.4.0
commit: 8cbbadf
build_tags: netgo ledger,
go: go version go1.25.6 linux/amd64
build_deps:

  • cosmossdk.io/errors@v1.0.2
  • filippo.io/edwards25519@v1.1.0
  • github.com/99designs/keyring@v1.2.1 => github.com/cosmos/keyring@v1.1.7-0.20210622111912-ef00f8ac3d76

Chain ID
1329 (0x531)

Describe the bug
When quering /cosmos/tx/v1beta1/txs/block/ with block with no transaction (202296839 for example), i get error:

{
    "code": 3,
    "message": "out of range: cannot paginate 0 txs with offset 0 and limit 100: invalid request: invalid request",
    "details": []
}

I have my own node, but public response is the same: sei-rest.publicnode.com/cosmos/tx/v1beta1/txs/block/202296839.

To Reproduce
Steps to reproduce the behavior:

  1. Make GET request on /cosmos/tx/v1beta1/txs/block/202296839 (block with no transactions)
  2. See error

Expected behavior
It should response with info about block

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglinearCreated by Linear-GitHub Sync

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions