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

Json response spam on IpcSocketProvider #3908

Closed
BaranTosun opened this issue Mar 16, 2023 · 1 comment
Closed

Json response spam on IpcSocketProvider #3908

BaranTosun opened this issue Mar 16, 2023 · 1 comment
Assignees
Labels
fixed/complete This Bug is fixed or Enhancement is complete and published. v6 Issues regarding v6

Comments

@BaranTosun
Copy link

Ethers Version

6.1.0

Search Terms

ipc, json, provider, console, output

Describe the Problem

When subscribing to pending transactions with IpcSocketProvider, console spams json output on each transaction. It makes reading the console impossible. Is this a feature that can be turned off, or is it unexpected behaviour?

Code Snippet

>>> {"method":"eth_chainId","params":[],"id":933014,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x8260017fe15e2030fa0ad0c205cd3789a50e0fe39ea2fcc5641ced52153fe34f"],"id":933015,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933016,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0xdab05a63dcf3474db86cda9994f3430b716151362be429af842d181bd9872e80"],"id":933017,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933018,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x47a13305f19853e4b53485fe529b9ab5bfb185e02df88db2d9c6a659230e1a22"],"id":933019,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933020,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x8d1afe63f06c5703cf178a642f9db181ed87a13c919f07318f14ec29716f94b1"],"id":933021,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933022,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0xb23374fd4caba839dffb163aca33800e86209f6735c91484c850f941901990ae"],"id":933023,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933024,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x91bfbabd923ab51f507b86641edf4987b5f6dc7098d265960bfb7365ff40fd08"],"id":933025,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933026,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x3b51f9c76486662c51246020594a97061eb45e72bb50cf614fcbe7f4328e06ce"],"id":933027,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933028,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x816ca11b26cfca7afec68016d21cba891d33814a4eafb2e9024c192698f33d82"],"id":933029,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933030,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x7c15674dfcae52b62e7e8c8d60b7e9cc9f73e85d95c8295f28ad7603d44caa73"],"id":933031,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933032,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0xa934c361f214b0a1c12c93e5c6acd561c0fc82d61d3157590aea8f69cb8a0ff6"],"id":933033,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933034,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x2f9e03ba98fb0a390fdd17b2dcd612b48cc39d480011564ffeb5454290a39c9e"],"id":933035,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933036,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0xe951fb82bc8f4c9c8eee65360b7d0ab2de4282782c6f3640e4cefe668039568f"],"id":933037,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933038,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0xa6b832e5d759599c643e17b5557b7876cce9547f532a6af43d94c743454384f2"],"id":933039,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933040,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0xe06830968da6a55065ab2255eb59f93cfabd2f45ca2dc250aff02d47929ac447"],"id":933041,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933042,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x0ef101306c1629cbac34085972f1cae4e8822e694911cce871ab9ebeee095748"],"id":933043,"jsonrpc":"2.0"}
>>> {"method":"eth_chainId","params":[],"id":933044,"jsonrpc":"2.0"}
>>> {"method":"eth_getTransactionByHash","params":["0x21cbca64bf76c7f3af58b321bcd7f3cc8800c3b8716bbc7c7a9d791f3d5be2df"],"id":933045,"jsonrpc":"2.0"}

Contract ABI

No response

Errors

No response

Environment

node.js (v12 or newer), Geth

Environment (Other)

No response

@BaranTosun BaranTosun added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Mar 16, 2023
@BaranTosun BaranTosun changed the title Json Response spam on IpcSocketProvider Json response spam on IpcSocketProvider Mar 16, 2023
@ricmoo ricmoo added on-deck This Enhancement or Bug is currently being worked on. and removed investigate Under investigation and may be a bug. labels Mar 18, 2023
@ricmoo ricmoo added fixed/complete This Bug is fixed or Enhancement is complete and published. and removed on-deck This Enhancement or Bug is currently being worked on. labels Mar 20, 2023
@ricmoo
Copy link
Member

ricmoo commented Mar 20, 2023

Fixed in v6.2.0.

Thanks! :)

@ricmoo ricmoo closed this as completed Mar 20, 2023
Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this issue Jan 14, 2024
Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this issue Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed/complete This Bug is fixed or Enhancement is complete and published. v6 Issues regarding v6
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants