-
Notifications
You must be signed in to change notification settings - Fork 10
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
[flutter web] violently crashes app on when the server isn't available #15
Comments
This was cross posted from MichaelMarner/dart-redux-remote-devtools#35, which has been closed because the issue is upstream in |
I tried wrapping the web final completer = Completer();
final ws = WebSocket(url);
ws.onError.listen((e) {
print('onError $e');
completer.complete();
});
ws.onOpen.listen((e) {
print('onOpen $e');
completer.complete();
});
await completer.future;
return ws; |
I don't use Flutter on web so don't have much experience here. But do you get a stacktrace where the error is occuring (ie what's in the exception in the devtools if you expand it)? |
I get nothing useful out of any of the normal flutter tooling, unfortunately. This package is upstream of |
Description
If you try to connect to a websocket server that isn't available on flutter web the app violently crashes even if you try to catch the error.
flutter --version
Reproduction
ws://localhost:8000/foo
Expected Results
Actual Results
Error State
MCVE
The text was updated successfully, but these errors were encountered: