We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
5.7.2
websocker,provider
When underlying WebSocket library emits an "error" message this is not correctly propagated to upper levels, thus it creates unhandled rejections.
ethers.js/packages/providers/src.ts/websocket-provider.ts
Line 89 in 0bfa7f4
the issue can be resolved with following;
if (typeof(url) === "string") { var _ws = new WebSocket(this.connection.url); _ws.on("error", (error) => this.emit("error", error)); defineReadOnly(this, "_websocket", _ws); }
new WebSocketProvider("<a wss url returns 502">");
No response
The text was updated successfully, but these errors were encountered:
ricmoo
No branches or pull requests
Ethers Version
5.7.2
Search Terms
websocker,provider
Describe the Problem
When underlying WebSocket library emits an "error" message this is not correctly propagated to upper levels, thus it creates unhandled rejections.
ethers.js/packages/providers/src.ts/websocket-provider.ts
Line 89 in 0bfa7f4
the issue can be resolved with following;
Code Snippet
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: