-
Notifications
You must be signed in to change notification settings - Fork 983
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
[Bug]: HTTP-Plugin on iOS: load events not fired #7416
Comments
our monitoring just witnessed the first case on android. Can't reproduce with setting JavaScript debug breakpoints on Android. |
This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. |
We are not able to reproduce it without setting a debug point |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Capacitor Version
Latest Dependencies:
@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/android: 6.0.0
@capacitor/ios: 6.0.0
Installed Dependencies:
@capacitor/cli: 5.7.4
@capacitor/android: 5.7.4
@capacitor/ios: 5.7.4
@capacitor/core: 5.7.4
Other API Details
Platforms Affected
Current Behavior
Upon launching the app, we've observed intermittent occurrences where an XHR request, configured with CapacitorHttp: { enabled: true }, fails to trigger a response. None of the expected events such as load, loadend, abort, progress, or error are triggered, leaving the xhr request indefinitely in readystate=2. External network issues have been ruled out, and the iOS console confirms successful completion of the request.
Reproducing this issue is challenging, but similar behavior was encountered when setting JavaScript debug breakpoints after the request initiation but before its completion. Upon resuming execution, the expected events failed to trigger.
Further investigation revealed that certain lines (788, 828, or 851) within native-bridge.ts (https://github.com/ionic-team/capacitor/blob/main/core/native-bridge.ts) are never reached, indicating potential loss of the native response.
Expected Behavior
The request finishes successfully.
Project Reproduction
.
Additional Information
No response
The text was updated successfully, but these errors were encountered: