error handling when provider connection fails? #2227
Unanswered
benediamond
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You could do something like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
consider this code, in the browser:
and suppose that nobody is listening on
"ws://127.0.0.1:8545/"
.even though i get errors in my console:
the catch block never fires.
how do i properly catch this error / determine whether the connection to the provider was successful? thanks.
Beta Was this translation helpful? Give feedback.
All reactions