-
Notifications
You must be signed in to change notification settings - Fork 354
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
[ios] [CupertinoClient] http connection issue: nw_path_necp_check_for_updates Failed to copy updated result (22) #972
Comments
Hi @delfme , I'm not sure why this happens? Does this happen while your app is in the foreground, background or both? Do you have the |
Hi @brianquinlan thx for the kind support! It surely happens while app is in foreground. Couldn't check what happens with app in background. I added Will test things and revert. |
Actually, the entitlement is not relevant for your configuration. There isn't really much for me to use to diagnose the problem here. Do you see an error if you use |
Issue with |
It would be great if |
Since Regarding #972 (comment) - I meant have you tested the scenario that demonstrates this bug using |
I am having the same issue. No http request is failing properly speaking, and I also see that keep-alive is working as expected. Still, I can see there is an important slowdown when running my application, at least in debug mode (USB debugging). Not sure it is related but - more worrying perhaps - I am sometimes seeing lots (and I say lots) of
errors, as reported in the comments here: My setup is described in the comments in the link above. I am using I can't recall what triggered this new behavior. |
@brianquinlan Yes, there is the bug when simply using
To reproduce the problem, issue eg. 100 http requests with, say, a 1-second interval. From times to times, you will see the issue. |
We are facing http connection issue when using CupertinoClient.
CC: @brianquinlan would you be so kind as to take a quick look at this? Just noticed you might know why this occurs.
To reproduce:
console nw_path_necp_check_for_updates Failed to copy updated result (22)
Note: Issue occurs frequently if device is connected to Internet via a VPN.
It seems this issue occurred also in the past, maybe a regression?
flutter/flutter#111940
Code sample
Code is simple, as per instructions from http package Readme.
Use below ConnectionService.client to call whatever rest api on iOS.
Note: We needed to use CupertinoClient coz connectivity with standard dart client was pretty unstable.
Logs
Error from console is:
console nw_path_necp_check_for_updates Failed to copy updated result (22)
Note: We have this issue with both cupertino_http: 1.0.0 and 0.1.2
Flutter doctor
[✓] Flutter (Channel master, 3.12.0-7.0.pre.22, on macOS 12.6.5 21G531 darwin-arm64, locale en-IT)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
✗ cmdline-tools component is missing
Run
path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run
flutter doctor --android-licenses
to accept the SDK licenses.See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] Connected device (3 available)
[✓] Network resources
The text was updated successfully, but these errors were encountered: