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

Soroban getEvents cursor is giving empty response #313

Closed
ella-quicknode opened this issue Oct 9, 2024 · 3 comments
Closed

Soroban getEvents cursor is giving empty response #313

ella-quicknode opened this issue Oct 9, 2024 · 3 comments
Assignees
Labels
bug Something isn't working rpc-sdk-scrum

Comments

@ella-quicknode
Copy link

What version are you using?

Node is implemented with Soroban v21.5.1

getNetwork response is:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "friendbotUrl": "https://friendbot.stellar.org/",
    "passphrase": "Public Global Stellar Network ; September 2015",
    "protocolVersion": 21
  }
}

getHealth response is:

{
  "jsonrpc": "2.0",
  "id": 8675309,
  "result": {
    "status": "healthy",
    "latestLedger": 53866455,
    "oldestLedger": 53849176,
    "ledgerRetentionWindow": 17280
  }
}

What did you do?

When calling getEvents, without cursor, it worked fine. node returns data, but when using cursor in the params, it then returns empty response.

Working payload without cursor :

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getEvents",
  "params": {
    "startLedger": 53849842,
    "pagination": {
      "limit": 3
    }
  }
}

Empty response when query with cursor, tried recent block within 24 hrs, the same behaviour

{
  "jsonrpc": "2.0",
  "id": 8675309,
  "method": "getEvents",
  "params": {
    "pagination": {
      "limit": 3,
      "cursor": "0231283310285574144-0000000001"
    }
  }
}

What did you expect to see?

It looked like the nodes aren't able to recognise cursor.

If calling the same payload on this url: https://soroban-rpc.mainnet.stellar.gateway.fm/
data is returned.

Is there config we missed out from the node?

@ella-quicknode ella-quicknode added the bug Something isn't working label Oct 9, 2024
@Shaptic Shaptic moved this from Backlog to To Do in Platform Scrum Oct 9, 2024
@Shaptic Shaptic added this to the platform sprint 51 milestone Oct 9, 2024
@2opremio 2opremio self-assigned this Oct 29, 2024
@2opremio
Copy link
Contributor

@Shaptic did you get to make any progress on this?

@Shaptic
Copy link
Contributor

Shaptic commented Oct 29, 2024

Iirc my working theory was having to do with the 10k scan limit; I couldn't find a reasonable explanation otherwise

@Shaptic
Copy link
Contributor

Shaptic commented Nov 13, 2024

This is closed by v22.0.0

@Shaptic Shaptic closed this as completed Nov 13, 2024
@github-project-automation github-project-automation bot moved this from To Do to Done in Platform Scrum Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rpc-sdk-scrum
Projects
Status: Done
Development

No branches or pull requests

4 participants