aurora-is-near / aurora-relayer

[DEPRECATED] Web3-compatible relayer server for Aurora.
https://aurora-is-near.github.io/aurora-relayer/
Creative Commons Zero v1.0 Universal
26 stars 13 forks source link

[BUG] eth_newBlockFilter returns "unknown encoding: 16" error #268

Closed duongthienduc closed 2 years ago

duongthienduc commented 2 years ago

Describe the bug Calling eth_newBlockFilter is returning the "unknown encoding: 16" error.

To Reproduce Steps to reproduce the behavior, e.g.:

  1. Start the relayer following the guide in README.md
  2. Call the rpc method eth_newBlockFilter of relayer endpoint: curl http://localhost:8545 -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_newBlockFilter","params":[],"id":273}'
  3. Check the log of relayer endpoint
  4. See error { "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

spilin commented 2 years ago

Hi @duongthienduc. We released a fix. Can you please check again.

duongthienduc commented 2 years ago

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: @.***>