{"id":16597244,"url":"https://github.com/adrianmcli/repro-eth-block-tracker-bug","last_synced_at":"2025-03-06T19:32:42.099Z","repository":{"id":51918036,"uuid":"191007726","full_name":"adrianmcli/repro-eth-block-tracker-bug","owner":"adrianmcli","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-03T12:53:46.000Z","size":30,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T04:44:22.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrianmcli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-09T13:08:02.000Z","updated_at":"2023-03-08T03:02:52.000Z","dependencies_parsed_at":"2023-01-22T20:30:10.890Z","dependency_job_id":null,"html_url":"https://github.com/adrianmcli/repro-eth-block-tracker-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Frepro-eth-block-tracker-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Frepro-eth-block-tracker-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Frepro-eth-block-tracker-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Frepro-eth-block-tracker-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianmcli","download_url":"https://codeload.github.com/adrianmcli/repro-eth-block-tracker-bug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242274653,"owners_count":20101084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T23:55:18.923Z","updated_at":"2025-03-06T19:32:42.074Z","avatar_url":"https://github.com/adrianmcli.png","language":"JavaScript","readme":"# Bug reproduction repo for Eth-Block-Tracker\n\n[Eth-Block-Tracker](https://github.com/MetaMask/eth-block-tracker) appears to no longer work with the latest version of [Web3.js](https://github.com/ethereum/web3.js) (i.e. beta 55). This repo provides an example of using Eth-Block-Tracker with [Infura](https://infura.io) and [Ganache](https://github.com/trufflesuite/ganache-cli) (they both provide different errors).\n\n## To run with Infura\n\n0. Run `npm install`.\n1. Replace Line 4 of `infura.js` (where it says `API_KEY_HERE`) with an Infura API key.\n2. Run `node infura.js` in your terminal.\n3. Observe the resulting error (see the \"Infura error\" section below).\n\n## To run with Ganache\n\n0. Run `npm install`.\n1. In a separate terminal, run `ganache-cli` globally (make sure it's listening on `127.0.0.1:8545`).\n2. Run `node ganache.js` in your terminal.\n3. Observe the resulting error (see the \"Ganache error\" section below).\n\n## Infura error\n\n```\n(node:10128) UnhandledPromiseRejectionWarning: Error: Node error: {\"code\":-32600,\"message\":\"invalid json request\"}\n    at Function.validate (/Users/adrianli/dev/repro-infura-block-track/node_modules/web3-providers/dist/web3-providers.cjs.js:114:18)\n    at HttpProvider._callee$ (/Users/adrianli/dev/repro-infura-block-track/node_modules/web3-providers/dist/web3-providers.cjs.js:710:61)\n    at tryCatch (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:45:40)\n    at Generator.invoke [as _invoke] (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:271:22)\n    at Generator.prototype.(anonymous function) [as next] (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:97:21)\n    at asyncGeneratorStep (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)\n    at _next (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)\n    at processTicksAndRejections (internal/process/task_queues.js:86:5)\n```\n\n## Ganache error\n\n```\n(node:10151) UnhandledPromiseRejectionWarning: Error: Node error: {\"message\":\"Method [object Object] not supported.\",\"code\":-32000,\"data\":{\"stack\":\"Error: Method [object Object] not supported.\\n    at u.handleRequest (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:517233)\\n    at t (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:380864)\\n    at a.handleRequest (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:516220)\\n    at t (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:380864)\\n    at s.f.handleRequest (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:509350)\\n    at s.handleRequest (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:507176)\\n    at t (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:380864)\\n    at c.handleRequest (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:515234)\\n    at t (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:380864)\\n    at a.handleRequest (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:514681)\\n    at t (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:380864)\\n    at d._handleAsync (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:380900)\\n    at Timeout._onTimeout (/Users/adrianli/n/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:52:380325)\\n    at listOnTimeout (internal/timers.js:535:17)\\n    at processTimers (internal/timers.js:479:7)\",\"name\":\"Error\"}}\n    at Function.validate (/Users/adrianli/dev/repro-infura-block-track/node_modules/web3-providers/dist/web3-providers.cjs.js:114:18)\n    at HttpProvider._callee$ (/Users/adrianli/dev/repro-infura-block-track/node_modules/web3-providers/dist/web3-providers.cjs.js:710:61)\n    at tryCatch (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:45:40)\n    at Generator.invoke [as _invoke] (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:271:22)\n    at Generator.prototype.(anonymous function) [as next] (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:97:21)\n    at asyncGeneratorStep (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)\n    at _next (/Users/adrianli/dev/repro-infura-block-track/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)\n    at processTicksAndRejections (internal/process/task_queues.js:86:5)\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianmcli%2Frepro-eth-block-tracker-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianmcli%2Frepro-eth-block-tracker-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianmcli%2Frepro-eth-block-tracker-bug/lists"}