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
App crashes even when exceptions are handled #268
Comments
Because the exceptions are inside the lib |
Same issue, using the |
Same |
WebSocketChannel channel = WebSocketChannel.connect(
Uri.parse('ws://localhost:8000/ws'),
);
try {
await channel.ready;
} catch (e) {
print("Exception: $e");
} |
Below is the implementation I am using for handling web socket requests.
WebSocketChannel.connect(Uri.parse(endpoint))
When I purposefully use a wrong url. An exception is thown in the
IOWebSocketChannel.connect
function.Another Error
The issue becomes that when these errors occur we handle these errors. However, even after the errors are handled the app still crashes.
The text was updated successfully, but these errors were encountered: