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

[Bug]: Capacitor HTTP Plugin Post request not working #7391

Closed
1 of 3 tasks
WurstMitBrot opened this issue Apr 11, 2024 · 2 comments · Fixed by #7395
Closed
1 of 3 tasks

[Bug]: Capacitor HTTP Plugin Post request not working #7391

WurstMitBrot opened this issue Apr 11, 2024 · 2 comments · Fixed by #7395
Labels
plugin: http type: bug A confirmed bug report

Comments

@WurstMitBrot
Copy link

Capacitor Version

Latest Dependencies:

@capacitor/cli: 5.7.4
@capacitor/core: 5.7.4
@capacitor/android: 5.7.4
@capacitor/ios: 5.7.4

Installed Dependencies:

@capacitor/android: not installed
@capacitor/cli: 5.7.4
@capacitor/core: 5.7.4
@capacitor/ios: 5.7.4

Other API Details

npm --version output: 10.5.0
node --verison output: v21.7.1

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Using the following configuration:
plugins: { CapacitorHttp: { enabled: true, }, }

When making a post request i get the following error:
Using fetch:
image

Using RTK Query:
image

Using CapacitorHttp.post
Everything works.

Expected Behavior

Using the fetch function should make a request and return the result.

Project Reproduction

https://github.com/WurstMitBrot/capacitor-fetch-example

Additional Information

I haven't checked the issue on android yet. With version 5.7.0 it worked.

@jcesarmobile jcesarmobile added type: bug A confirmed bug report plugin: http and removed triage labels Apr 11, 2024
Copy link

ionitron-bot bot commented Apr 11, 2024

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.

Copy link

ionitron-bot bot commented May 15, 2024

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 ionitron-bot bot locked and limited conversation to collaborators May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plugin: http type: bug A confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants