Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return the app to the desktop, then switch to Wi Fi in the system. After switching to Wi Fi, click on the desktop app icon to enter the app. At this point, there is an exception when sending network requests. This is highly likely to occur on Ios #2272

Closed
jyljames opened this issue Jul 24, 2024 · 5 comments

Comments

@jyljames
Copy link

Package

dio

Version

5.5.0+1

Operating-System

iOS

Adapter

Default Dio

Output of flutter doctor -v

No response

Dart Version

3.3.4

Steps to Reproduce

  1. enter into app
  2. Return the app to the desktop
  3. switch to Wi Fi in the system
  4. click on the desktop app icon to enter the app
  5. tap button to request api, then dio return error

Expected Result

should be Successful

Actual Result

Error: HttpException: Operation timed out, uri = https://binding/check,
stackTrace: #0 DioMixin.fetch. (package:dio/src/dio_mixin.dart:507)
#1 _FutureListener.handleError (dart:async/future_impl.dart:180)
#2 Future._propagateToListeners.handleError (dart:async/future_impl.dart:850)
#3 Future._propagateToListeners (dart:async/future_impl.dart:871)
#4 Future._completeError (dart:async/future_impl.dart:651)
#5 _SyncCompleter._completeError (dart:async/future_impl.dart:63)
#6 _Completer.completeError (dart:async/future_impl.dart:27)
#7 Future.any.onError (dart:async/future.dart:613)
#8 _RootZone.runBinary (dart:async/zone.dart:1666)
#9 _FutureListener.handleError (dart:async/future_impl.dart:177)
#10 Future._propagateToListeners.handleError (dart:async/future_impl.dart:850)
#11 Future._propagateToListeners (dart:async/future_impl.dart:871)
#12 Future._completeError (dart:async/future_impl.dart:651)
#13 Future._chainForeignFuture. (dart:async/future_impl.dart:556)
#14 _microtaskLoop (dart:async/schedule_microtask.dart:40)
#15 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

@jyljames jyljames added h: need triage This issue needs to be categorized s: bug Something isn't working labels Jul 24, 2024
@AlexV525
Copy link
Member

Please verify if the issue exists when using the HttpClient alone or the package:http. There is a good chance that it's a dart:io issue.

@AlexV525 AlexV525 added the h: need more info Further information is requested label Jul 31, 2024
@artem-2024
Copy link

我遇到同样的情况,
dart-lang/sdk#53040
请问dio是否支持网络更改

@jyljames
Copy link
Author

jyljames commented Aug 19, 2024 via email

@artem-2024
Copy link

Please verify if the issue exists when using the HttpClient alone or the package:http. There is a good chance that it's a dart:io issue.
我遇到同样的情况,
dart-lang/sdk#53040
请问dio是否支持网络更改

@AlexV525
Copy link
Member

If cupertino_http supports network switching, using native_dio_adapter in dio will also gain the ability.

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
@AlexV525 AlexV525 added i: out of support and removed h: need more info Further information is requested h: need triage This issue needs to be categorized s: bug Something isn't working labels Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants