movementlabsxyz / movement

The Movement Network is a Move-based L2 on Ethereum.
Apache License 2.0
76 stars 62 forks source link

Indexer Event Filtering by type issue #809

Open feedkeek opened 1 week ago

feedkeek commented 1 week ago

Describe the bug When querying Events by type request return an error.

To Reproduce Steps to reproduce the behavior:

  1. Execute the following GraphQL query:
    
    query MyQuery {
    events(
    where: {type: {_eq: "0x59a79c4c3a9593c0558a479aaa34953a404eb83772c1e3b0a4eee2a0c0e8f11f::domains::RegisterNameEvent"}}
    limit: 10
    ) {
    type
    transaction_version
    transaction_block_height
    sequence_number
    inserted_at
    indexed_type
    event_index
    data
    creation_number
    account_address
    }
    }
2. Observe the errored response:

{ "errors": [ { "message": "Failed to fetch", "stack": "TypeError: Failed to fetch\n at fetch (https://cloud.hasura.io/public-graphiql/static/js/main.1dbb5e19.js:2:203246)\n at https://cloud.hasura.io/public-graphiql/static/js/main.1dbb5e19.js:2:197788\n at Generator.next ()\n at s (https://cloud.hasura.io/public-graphiql/static/js/main.1dbb5e19.js:2:196790)\n at https://cloud.hasura.io/public-graphiql/static/js/main.1dbb5e19.js:2:196751\n at new Promise ()\n at i..r. [as next] (https://cloud.hasura.io/public-graphiql/static/js/main.1dbb5e19.js:2:196703)\n at https://cloud.hasura.io/public-graphiql/static/js/main.1dbb5e19.js:2:161135" } ] }



**Expected behavior**
The query should return filtered events without error.

***Additional Context***
Link to [transaction](https://explorer.movementnetwork.xyz/txn/44147434/events?network=porto+testnet).
dio-dev commented 3 days ago

@0xPrimata Hey we still facing this issue, any updates on it?