Closed bibash28 closed 1 year ago
(As already discussed on Slack:)
To prevent your app from crashing on errors, you should make sure you're handling throwing method calls properly. Kotlin doesn't have checked exceptions, so it won't enforce it at compile time. The throwing methods in Beacon, however, have it mentioned in their docs and are annotated with @Throws
to help its users understand they need special handling. BeaconWalletClient#pair
is an example of a throwing method and if the exceptions it may throw aren't caught and handled, your application most probably will crash.
As for the cause of the error, please first double-check your network connection whenever you see that no reachable node was found. Then, if you configured the client with a custom set of nodes, make sure those nodes are up and running.