-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
WebSocketProvider.destroy() trigger an error #4678
Labels
bug
Verified to be an issue.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
v6
Issues regarding v6
Comments
VladimirDiamandi
added
investigate
Under investigation and may be a bug.
v6
Issues regarding v6
labels
Apr 2, 2024
ricmoo
added
on-deck
This Enhancement or Bug is currently being worked on.
next-patch
Issues scheduled for the next arch release.
labels
Apr 16, 2024
ricmoo
added a commit
that referenced
this issue
Apr 17, 2024
ricmoo
added
bug
Verified to be an issue.
and removed
investigate
Under investigation and may be a bug.
labels
Apr 17, 2024
Fixed in v6.12.0. Let me know if you have any further issues. Thanks! :) |
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.
next-patch
Issues scheduled for the next arch release.
labels
Apr 17, 2024
This was referenced Jun 20, 2024
This was referenced Jun 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Verified to be an issue.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
v6
Issues regarding v6
Ethers Version
6.11.1
Search Terms
No response
Describe the Problem
If there are active subscriptions, the error will be thrown after some time after calling the provider.destroy() method.
As I understand the cause of the error is this line, because this.#destoyed is set to true before the asynchronous function "this.removeAllListeners()" is executed, as a consequence, an exception is thrown in the send method.
Code Snippet
No response
Contract ABI
No response
Errors
Environment
No response
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: