You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I send a request to my server using fetch, the server get the request then send a response with 3xx status code, then the client throws TypeError: Failed to fetch, it's like adding redirect: "error" to the fetch request. However, when I use CapacitorHttp, everything works fine. I already have a website for my app, and everything works fine there. Did I do something wrong, or does fetch in Capacitor not handle 3xx status codes properly?
Expected Behavior
when using fetch api, and get response with 3xx status codes, the fetch api should not through error
Capacitor Version
Latest Dependencies:
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2
Installed Dependencies:
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2
[success] Android looking great! �
Other API Details
Platforms Affected
Current Behavior
When I send a request to my server using fetch, the server get the request then send a response with 3xx status code, then the client throws
TypeError: Failed to fetch
, it's like addingredirect: "error"
to the fetch request. However, when I use CapacitorHttp, everything works fine. I already have a website for my app, and everything works fine there. Did I do something wrong, or does fetch in Capacitor not handle 3xx status codes properly?Expected Behavior
when using fetch api, and get response with 3xx status codes, the fetch api should not through error
Project Reproduction
https://github.com/Ammar1999y/fetch-error/blob/main/pages/_app.tsx
Additional Information
No response
The text was updated successfully, but these errors were encountered: