capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

[Bug]: XHR onreadystatechange not working for non POST requests

Open ndrake opened this issue 1 year ago • 2 comments

Capacitor Version

💊 Capacitor Doctor 💊

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/core: 6.0.0 @capacitor/android: 6.0.0 @capacitor/cli: 6.0.0 @capacitor/ios: 6.0.0

[success] iOS looking great! 👌 [success] Android looking great! 👌

Other API Details

npm: 10.2.3
node: v18.19.0
pod: 1.14.3

Platforms Affected

  • [X] iOS
  • [X] Android
  • [ ] Web

Current Behavior

After upgrading our app v5 app, our Axios requests don't seem to be intercepted by CapacitorHttp. This is happening in both iOS and Android.

Expected Behavior

CapacitorHttp intercepts all requests like it did with Capacitor v5

Project Reproduction

https://github.com/ndrake/cap-http-bug-repro

Additional Information

Might be the same issue as this recently reported bug: https://github.com/ionic-team/capacitor/issues/7416

ndrake avatar Apr 20 '24 14:04 ndrake

Can confirm this issue.

patrickjquinn avatar Apr 24 '24 08:04 patrickjquinn

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

ionitron-bot[bot] avatar Apr 25 '24 14:04 ionitron-bot[bot]

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.

ionitron-bot[bot] avatar Jul 11 '24 15:07 ionitron-bot[bot]