capacitor
capacitor copied to clipboard
bug: Http plugin timeout for web
Bug Report
Capacitor Version
Installed Dependencies:
@capacitor/android: not installed
@capacitor/ios: not installed
@capacitor/cli: 5.2.2
@capacitor/core: 5.2.2
Platform(s)
Web
Current Behavior
Setting HttpOptions.readTimeout and HttpOptions.connectTimeout doesn't effect on requests sent via web implementation. Also the request stays in pending state
Expected Behavior
After HttpOptions.readTimeout + HttpOptions.connectTimeout milliseconds request gets cancelled This can be achieved by passing a signal controller to fetch (Read more AbortSignal).
Other Technical Details
npm --version output: 9.7.2
node --version output: 19.3.0