You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
I am connecting to a private RPC network with limit 10 request/s and I get the following error message though we do not have any transaction:
/home/ubuntu/api-server/node_modules/@trufflesuite/web3-provider-engine/subproviders/rpc.js:53
})()
^
Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: Too Many Requests
at /home/ubuntu/api-server/node_modules/@trufflesuite/web3-provider-engine/subproviders/rpc.js:51:23
at Request._callback (/home/ubuntu/api-server/node_modules/@trufflesuite/web3-provider-engine/subproviders/rpc.js:53:11)
at Request.self.callback (/home/ubuntu/api-server/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request.<anonymous> (/home/ubuntu/api-server/node_modules/request/request.js:1154:10)
at Request.emit (events.js:315:20)
at IncomingMessage.<anonymous> (/home/ubuntu/api-server/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
at PollingBlockTracker._performSync (/home/ubuntu/api-server/node_modules/eth-block-tracker/src/polling.js:51:24)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
It seems that each HDWalletProvider has a PollingBlockTracker which polls a network every 20s. If I have many HDWalletProvider instances, this might create lots of unnecessary pollings that triggers 429 error from the network. I have lots of users and I create many HDWalletProvider, one HDWalletProvider for each user.
Any solution for this polling issue?
The text was updated successfully, but these errors were encountered:
Hi,
I am connecting to a private RPC network with limit 10 request/s and I get the following error message though we do not have any transaction:
It seems that each HDWalletProvider has a
PollingBlockTracker
which polls a network every 20s. If I have many HDWalletProvider instances, this might create lots of unnecessary pollings that triggers 429 error from the network. I have lots of users and I create many HDWalletProvider, one HDWalletProvider for each user.Any solution for this polling issue?
The text was updated successfully, but these errors were encountered: