Closed duongthienduc closed 2 years ago
Hi @duongthienduc. We released a fix. Can you please check again.
Yes, it is working. Thanks a lot for fixing the issue.
On Mon, 25 Apr 2022 at 18:58, spilin @.***> wrote:
Hi @duongthienduc https://github.com/duongthienduc. We released a fix. Can you please check again.
— Reply to this email directly, view it on GitHub https://github.com/aurora-is-near/aurora-relayer/issues/268#issuecomment-1108478321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHMUJTCTJC4VXIFDHYGDU3VG2CG7ANCNFSM5T4VEHEQ . You are receiving this because you were mentioned.Message ID: @.***>
Describe the bug Calling eth_newBlockFilter is returning the "unknown encoding: 16" error.
To Reproduce Steps to reproduce the behavior, e.g.:
curl http://localhost:8545 -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_newBlockFilter","params":[],"id":273}'
{ "level": 50, "time": 1650471766243, "pid": 8, "hostname": "af07b2273b3b", "code": "ERR_UNKNOWN_ENCODING", "stack": "TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: 16\n at new NodeError (node:internal/errors:371:5)\n at Buffer.toString (node:buffer:809:11)\n at intToHex (file:///srv/aurora/relayer/node_modules/@aurora-is-near/engine/lib/utils.js:29:23)\n at DatabaseServer.eth_newBlockFilter (file:///srv/aurora/relayer/lib/servers/database.js:368:16)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)", "type": "Error", "msg": "Unknown encoding: 16" }
Expected behavior Call the rpc method eth_newBlockFilter should work