Can't catch SocketException
Open
bug
help wanted
- Dominant language
- Dart
- Stars
- 143
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
```
Exception has occurred.
SocketException (SocketException: OS Error: Connection timed out, errno = 110, address = carlhung.mynetgear.com, port = 45396)
```
I can catch the returned result. but after a while, the simulator of android will crash with SocketException.
my code:
```
try {
request = await Requests.post(
url + '/login',
headers: {'content-type': 'application/json'},
json: dic,
verify: false,
// timeoutSeconds: 5,
);
} catch (e) {
return {"result":"Connection Error: $e"};
}
```
Contributor guide
Assessment
This issue has not been assessed yet.