hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

Ethers v6 Filter API not working with 0.55.0

Open tknoch-symphony opened this issue 5 months ago • 0 comments

Description

While running our instance of the latest version of Hedera JSON-RPC node (0.55.0), filter api does not work, even when filter api flag is turned on. The client calls are made by ethers v6.

@TODO Error: could not coalesce error (error={ "code": -32001, "message": "[Request ID: 038fa6e7-6804-47e9-8c36-a2a43f4fc4a0] Filter not found", "name": "Filter not found" }, payload={ "id": 74408, "jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": [ "0x0a7c11483e1472a3cf6836580d1c0e50" ] }, code=UNKNOWN_ERROR, version=6.13.2)
    at makeError (/node_modules/ethers/lib.commonjs/utils/errors.js:129:21)
    at JsonRpcProvider.getRpcError (/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:730:41)
    at /node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:302:45
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'UNKNOWN_ERROR',
  error: {
    code: -32001,
    name: 'Filter not found',
    message: '[Request ID: 038fa6e7-6804-47e9-8c36-a2a43f4fc4a0] Filter not found'
  },
  payload: {
    method: 'eth_getFilterChanges',
    params: [ '0x0a7c11483e1472a3cf6836580d1c0e50' ],
    id: 74408,
    jsonrpc: '2.0'
  },
  shortMessage: 'could not coalesce error'
}

Steps to reproduce

  1. install Hedera JSON-RPC node (0.55.0). Turn on filter api
  2. Use ethers v6 to subscribe to a smart contract event filter
  3. See errors in Hedera JSON-RPC node logs mentioning filter api is not implemented

Additional context

No response

Hedera network

testnet

Version

0.55.0

Operating system

Linux

tknoch-symphony avatar Sep 26 '24 07:09 tknoch-symphony