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
Hi guys,
final events = EventSource(Uri.parse(sseEndpointUrl), initialReconnectDelay: new Duration(seconds:1)); try { events.events.listen((MessageEvent message) { print('SSE event: ${message.data}'); }).onError((error) => { print('SSE event error: $error') }); } on SocketException catch(error) { print('$error'); }
E/flutter (30879): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: SocketException: OS Error: Connection timed out, errno = 110, address = 192.168.1.100, port = 53342 E/flutter (30879):
This throws SocketException when the server is unavailable, it doesn't seem to goto onError or try catch. any idea how to handle it?
The text was updated successfully, but these errors were encountered:
could be a bug. i'm not using dart/flutter for anything lately but if you or anyone wants to look into this and maybe send a PR i'd review it.
Sorry, something went wrong.
Did you ever find a solution to this? I had to put in a connection listener as a workaround.
Copied the code to my project and change the code to reconnect on disconnect
No branches or pull requests
Hi guys,
E/flutter (30879): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: SocketException: OS Error: Connection timed out, errno = 110, address = 192.168.1.100, port = 53342
E/flutter (30879):
This throws SocketException when the server is unavailable, it doesn't seem to goto onError or try catch. any idea how to handle it?
The text was updated successfully, but these errors were encountered: