Open crycime opened 1 year ago
This seems to be similar and / or related to https://github.com/ethers-io/ethers.js/issues/3952
@ricmoo what happened to ProviderEvents? they seem all gone... (same behavior with 6.3.0)
This will be added in the next minor version. I'm currently trying to figure out the best way to abstract all the possible ways things can go wrong, so an extendable type can be provided for future internal errors.
This will be added in the next minor version. I'm currently trying to figure out the best way to abstract all the possible ways things can go wrong, so an extendable type can be provided for future internal errors.
Thank you, any workaround meanwhile? use window.ethereum.on
?
Is there any update about this problem? I am still facing same issue.
It’s fixed in main, but not published yet. There are two small issues I want to include in the minor bump that fixes this. Should be published on npm soon.
These hidden errors are a real showstopper, is there anything I can help you with so that the release can be published? 🙂
I'm also concerned about this "error handling" for listeners, both for the high-level api and the low-level api:
And especially this: https://github.com/ethers-io/ethers.js/blob/13593809bd61ef24c01d79de82563540d77098db/src.ts/providers/subscriber-filterid.ts#L97
I simulate a serious problem by restarting my hardhat test network. Then the whole application gets stuck and there is no way to recover from this bogus state:
@TODO TypeError: results is not iterable
at FilterIdEventSubscriber._emitResults (/Users/xxx/node_modules/ethers/src.ts/providers/subscriber-filterid.ts:159:30)
at FilterIdEventSubscriber.#poll (/Users/xxx/node_modules/ethers/src.ts/providers/subscriber-filterid.ts:96:24)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Errors are silently catched everywhere and there is also no global error
event listener that could be used to reset the connection.
Event after updating to v6.4.0 the issue is still there
I’ll look into this in the morning.
Is this still pending?
Did you fix?
Using v6.13.2 I'm still getting the error. It only seems present using a local hardhat node, so I suspect that "non-iterable results" happens when no transaction is made on the block. That would explain why it won't happen in production as several transactions are available on every new block.
Ethers Version
6.2.3
Search Terms
No response
Describe the Problem
Did the 'error' event listener get removed in v6, like provider.on('error', () => {})?
Code Snippet
Contract ABI
No response
Errors
Environment
No response
Environment (Other)
No response