POST Requests Failing After Upgrading Capacitor from v3 to v6 – Error 0 and SSLHandshakeException

Hi everyone,

I recently upgraded my Capacitor project from v3 to v6 and now my POST endpoints are failing with Error 0. Interestingly, the requests work perfectly when tested using HTTP Toolkit.

Here are some details about my setup:

  • Using Angular HttpClient for requests

  • Also tried using @capacitor-community/http plugin

  • Ionic version: v5

When I try to use @capacitor-community/http, I get the following error in the console:

File: https://localhost/main.js - Line 4472 - Msg: [HTTP ERROR] Error: SSLHandshakeException

Has anyone else faced similar issues after upgrading? Any pointers on resolving the SSLHandshakeException or the Error 0 on POST requests would be really appreciated.

Thanks in advance!