Infrequently I get Connection reset by peer error. As a result the the application continues to see circular progress bar and remains stuck there.
I am using http package "http: ^0.13.5".
Is there a way to handle this exception?
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Connection reset by peer
#0 IOClient.send
io_client.dart:90
<asynchronous suspension>
#1 BaseClient._sendUnstreamed
base_client.dart:93
<asynchronous suspension>
#2 _withClient
http.dart:164
<asynchronous suspension>
#3 _MainViewPageState.getRideInfo
main_view.dart:107
<asynchronous suspension>