cfug / dio

A powerful HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc.
https://dio.pub
MIT License
12.45k stars 1.51k forks source link

我使用 dio: ^5.7.0,在ios,与 maocs 还以 windows上,某些设备会出现无法访问网络,会出现这个DioExceptionType.unknown,导致我的客户不能使用我的应用 #2299

Open xiongzhaoxu opened 4 days ago

xiongzhaoxu commented 4 days ago

Package

dio

Version

5.7.0

Operating-System

iOS, MacOS, Windows

Adapter

Default Dio

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.24.2, on macOS 14.3.1 23D60 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.24.2 on channel stable at /Users/xiongzhaoxu/work/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cf269e36d (3 weeks ago), 2024-09-03 14:30:00 -0700
    • Engine revision a6bd3f1de1
    • Dart version 3.5.2
    • DevTools version 2.37.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/xiongzhaoxu/Library/Android/sdk
    • Platform android-34, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio 2.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio 2.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.4)
    • IntelliJ at /Applications/IntelliJ IDEA 2.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.93.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (4 available)
    • iPhone 11 (mobile)              • 00008030-00160CDE0E50802E • ios            • iOS 17.3.1 21D61
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.3.1 23D60 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.3.1 23D60 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 128.0.6613.139

[✓] Network resources
    • All expected network resources are available.

Dart Version

3.5.2

Steps to Reproduce

偶发事件

Expected Result

预期应该是可以正常使用才对,因为大部用户都可以正常使用,只有机台windows设备,还有ios设备,macos设备无法请求网络

Actual Result

少部分 windows设备,还有ios设备,macos设备无法请求网络,出现DioExceptionType.unknown,这个如何解决呢?我的借口是https的

Johnjson commented 4 days ago

I encountered the same problem with some iOS phones

xiongzhaoxu commented 4 days ago

I encountered the same problem with some iOS phones

Have you found a solution yet

Johnjson commented 4 days ago

I encountered the same problem with some iOS phones

Have you found a solution yet

remain to be solved,My solution is for users to upgrade their phone system to the latest version

xiongzhaoxu commented 4 days ago

I encountered the same problem with some iOS phones

Have you found a solution yet

remain to be solved,My solution is for users to upgrade their phone system to the latest version

Can upgrading the user's iOS system to the latest version solve this problem? We also have macOS and Windows users here who encounter this problem. Once it occurs, they cannot access any network

Johnjson commented 2 days ago

I encountered the same problem with some iOS phones

Have you found a solution yet

remain to be solved,My solution is for users to upgrade their phone system to the latest version

Can upgrading the user's iOS system to the latest version solve this problem? We also have macOS and Windows users here who encounter this problem. Once it occurs, they cannot access any network

The users I have encountered with problems are the older iOS version, such as the situation that the version has not been updated for several years, but some users are still unwilling to update the version, so this part of the use is still unable to use