真机报错
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.
真机上报错:DioError [DioErrorType.DEFAULT]: SocketException: Connection failed (OS Error: No route to host, errno = 65), address = 192.168.0.102, port = 7002
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‘ve got the same exception too. In the iOS simulator, the dio work well, but in the iPhone the exception was raised. What's more, the same exceptional code in another test app just work well in both sides.