-
Notifications
You must be signed in to change notification settings - Fork 1k
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]: CapacitorHttp removing query params when using native fetch #7319
Comments
Seeing this also (on iOS and Android), I believe it was introduced here. Specifically, that change appears to be constructing a proxy URL in order to send a request through the appropriate CapacitorHttp interceptor. However, it's only using the |
This seems like a major regression that could lead to lots of application breakage. |
This has entirely broken my project as I'm sure it has for many. This should be considered a sev1 regression IMO. It also impacts iOS too FYI. |
This issue has been labeled as |
I did try 5.7.3 and now I'm getting and the url instead of |
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
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 5.7.2
@capacitor/core: 5.7.2
@capacitor/android: 5.7.2
@capacitor/ios: 5.7.2
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 5.7.2
@capacitor/android: 5.7.2
@capacitor/core: 5.7.2
[success] Android looking great! 👌
Other API Details
Platforms Affected
Current Behavior
Since
@capacitor/[email protected]
when calling an API using the browser fetch withCapacitorHttp
enabled, the interceptor is removing the query params.CapacitorHttp.get
works normally.Expected Behavior
The query params should not be removed from the URL
Project Reproduction
https://github.com/marcelobotega/capacitor-http-error
Additional Information
The instructions for the reproduction repo are on the readme.
The problem do not happen on
@capacitor/[email protected]
you can downgrade the version on package.json and the API calls will have the query params.The placeholder API will work, but the
?postId=2
params will not be on the URL on version >= 5.7.1The text was updated successfully, but these errors were encountered: