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

Ethers v6 Filter API not working with 0.55.0 #3030

Open
tknoch-symphony opened this issue Sep 26, 2024 · 0 comments
Open

Ethers v6 Filter API not working with 0.55.0 #3030

tknoch-symphony opened this issue Sep 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tknoch-symphony
Copy link

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 tknoch-symphony added the bug Something isn't working label Sep 26, 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
Projects
None yet
Development

No branches or pull requests

1 participant