Dio: [DioErrorType.DEFAULT]: SocketException: OS Error: Connection refused,

Created on 7 Nov 2019  ·  6Comments  ·  Source: flutterchina/dio

New Issue Checklist

  • [ ] I have searched for a similar issue in the project and found none

Issue Info

| Info | Value | |
| ------------------------------ | ----------------------------------------------------- | ---- |
| Platform Name | e.g. flutter / ios / android | |
| Platform Version | e.g. 1.5.0 / 12.0 / 9.0 | |
| Dio Version | e.g. 2.1.0 / 1.0.17 | |
| Android Studio / Xcode Version | e.g. Android Studio 3.3.2 / Xcode 10.2.1 | |
| Repro rate | e.g. all the time (100%) / sometimes x% / only once | |
| Repro with our demo prj | e.g. does it happen with our demo project? | |
| Demo project link | e.g. link to a demo project that highlights the issue | |

Issue Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

stale

Most helpful comment

Also getting the error. Usually happens after 3-4 successful requests, and then immediately fails with:

 SocketException: OS Error: Connection refused, errno = 61, address = web.address.here, port = 58931

All 6 comments

me too! but just in Android

+1

+1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions.

I am also getting this error, how can i handle it ?

Also getting the error. Usually happens after 3-4 successful requests, and then immediately fails with:

 SocketException: OS Error: Connection refused, errno = 61, address = web.address.here, port = 58931
Was this page helpful?
0 / 5 - 0 ratings