Skip to content

getevents request fails with processing limit when filtering for mint events #468

@urvisavla

Description

@urvisavla

What version are you using?

The issue occurs on the latest P23 development build as well as on the public endpoint running P22: https://mainnet.sorobanrpc.com/

What did you do?

Sent the following getEvents request filtered for 'mint' events.

curl -X POST \
-H 'Content-Type: application/json' \
-d '{
  "jsonrpc": "2.0",
  "id": 8675309,
  "method": "getEvents",
  "params": {
    "startLedger": 57902010,
    "endLedger": 57902012,
    "filters": [
      {
        "type": "contract",
        "topics": [
          [
            "AAAADwAAAARtaW50", "*", "*", "*"
          ]
        ]
      }
    ],
    "pagination": {
      "limit": 10
    },
    "xdrFormat": "base64"
  }
}'

What did you expect to see?

Successful response containing events matching the filter.

What did you see instead?

{
  "jsonrpc": "2.0",
  "id": 8675309,
  "error": {
    "code": -32001,
    "message": "[-32001] request exceeded processing limit threshold"
  }
}

Additional Details

  • AAAADwAAAARtaW50 corresponds to the "mint" event type.

  • I experimented with multiple variations of the topic filter, all of which result in the same timeout error.

["AAAADwAAAARtaW50"]
["AAAADwAAAARtaW50", "*"]
["AAAADwAAAARtaW50", "*", "*"]
["AAAADwAAAARtaW50", "*", "*", "*"]

  • Replacing the event type with "transfer" (AAAADwAAAAh0cmFuc2Zlcg==) works as expected and returns results without timeout.

  • The request includes both startLedger and endLedger to narrow the query range to just 2 ledgers which should help performance yet the timeout still occurs.

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions