cloud-cryptographic-wallet icon indicating copy to clipboard operation
cloud-cryptographic-wallet copied to clipboard

If there is no connection to the endpoint, `new KmsProvider` will throw an exception.

Open odanado opened this issue 4 years ago • 0 comments

const url = "localhost:8545";
const provider = new KmsProvider(url, kmsOptions);

If the following code is executed before localhost:8545 listens, an error will occur. It is preferable that the KmsProvider does not initiate a connection until communication has occurred.

/Users/odan/source/github.com/odan-sandbox/arbitrum-sandbox/node_modules/eth-block-tracker/src/polling.js:51
        const newErr = new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\n${err.stack}`)
                       ^
Error: PollingBlockTracker - encountered an error while attempting to update latest block:
undefined
    at PollingBlockTracker._performSync (/Users/odan/source/github.com/odan-sandbox/arbitrum-sandbox/node_modules/eth-block-tracker/src/polling.js:51:24)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

odanado avatar Sep 01 '21 11:09 odanado