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

relayer making huge range requests #829

Open
InoMurko opened this issue May 16, 2023 · 0 comments
Open

relayer making huge range requests #829

InoMurko opened this issue May 16, 2023 · 0 comments
Assignees

Comments

@InoMurko
Copy link
Contributor

InoMurko commented May 16, 2023

Issue Type

[x ] bug report
[ ] feature request

Current Behavior

Goerli log:
relayer making 1142127 requests log for eth_getLogs?
{"level":50,"time":1684234466644,"extra":{"message":"Error: processing response error (body=\"{\\\"id\\\":2462,\\\"jsonrpc\\\":\\\"2.0\\\",\\\"error\\\":{\\\"code\\\":-32602,\\\"message\\\":\\\"invalid params\\\",\\\"data\\\":{\\\"error_id\\\":\\\"b39b33bb-d175-4a8e-aa22-8c7fe5ad4ecb\\\",\\\"payload\\\":\\\"range 1142127 is bigger than range limit 2000\\\"}}}\", error={\"code\":-32602,\"data\":{\"error_id\":\"b39b33bb-d175-4a8e-aa22-8c7fe5ad4ecb\",\"payload\":\"range 1142127 is bigger than range limit 2000\"}}, requestBody=\"{\\\"method\\\":\\\"eth_getLogs\\\",\\\"params\\\":[{\\\"fromBlock\\\":\\\"0x780c66\\\",\\\"toBlock\\\":\\\"latest\\\",\\\"address\\\":\\\"0x7bb4cfa36f9f3880e18a46b74bbb9b334f6600f3\\\",\\\"topics\\\":[\\\"0x16be4c5129a4e03cf3350262e181dc02ddfb4a6008d925368c0899fcd97ca9c5\\\",\\\"0x0000000000000000000000000000000000000000000000000000000000000d4d\\\"]}],\\\"id\\\":2462,\\\"jsonrpc\\\":\\\"2.0\\\"}\", requestMethod=\"POST\", url=\"https://goerli.gateway.tenderly.co/<API KEY>\", code=SERVER_ERROR, version=web/5.7.1)","stack":"Error: processing response error (body=\"{\\\"id\\\":2462,\\\"jsonrpc\\\":\\\"2.0\\\",\\\"error\\\":{\\\"code\\\":-32602,\\\"message\\\":\\\"invalid params\\\",\\\"data\\\":{\\\"error_id\\\":\\\"b39b33bb-d175-4a8e-aa22-8c7fe5ad4ecb\\\",\\\"payload\\\":\\\"range 1142127 is bigger than range limit 2000\\\"}}}\", error={\"code\":-32602,\"data\":{\"error_id\":\"b39b33bb-d175-4a8e-aa22-8c7fe5ad4ecb\",\"payload\":\"range 1142127 is bigger than range limit 2000\"}}, requestBody=\"{\\\"method\\\":\\\"eth_getLogs\\\",\\\"params\\\":[{\\\"fromBlock\\\":\\\"0x780c66\\\",\\\"toBlock\\\":\\\"latest\\\",\\\"address\\\":\\\"0x7bb4cfa36f9f3880e18a46b74bbb9b334f6600f3\\\",\\\"topics\\\":[\\\"0x16be4c5129a4e03cf3350262e181dc02ddfb4a6008d925368c0899fcd97ca9c5\\\",\\\"0x0000000000000000000000000000000000000000000000000000000000000d4d\\\"]}],\\\"id\\\":2462,\\\"jsonrpc\\\":\\\"2.0\\\"}\", requestMethod=\"POST\", url=\"https://goerli.gateway.tenderly.co/<API KEY>\", code=SERVER_ERROR, version=web/5.7.1)\n at Logger.makeError (/opt/optimism/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)\n at Logger.throwError (/opt/optimism/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)\n at /opt/optimism/node_modules/@ethersproject/web/src.ts/index.ts:341:28\n at step (/opt/optimism/node_modules/@ethersproject/web/lib/index.js:33:23)\n at Object.next (/opt/optimism/node_modules/@ethersproject/web/lib/index.js:14:53)\n at fulfilled (/opt/optimism/node_modules/@ethersproject/web/lib/index.js:5:58)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)","code":"SERVER_ERROR"},"msg":"Caught an unhandled error"}

Expected Behavior

Steps to Reproduce

Suggested Fix

@souradeep-das execute
@boyuan-chen if help is needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants