Http failure during parsing

Hi Developers,

I have a PWA Ionic app and I am trying to generate an apk using capacitor.
Steps that I have used are.

  1. ng build
  2. npx cap add android
  3. npx cap sync android
  4. npx cap run android

Now, I am getting the Http failure during parsing. Can someone please help me out.
I have a Spring Boot server which is running. My PWA works fine but when debugging the App in Emulator I am getting this error.

Someone please help me out. I am stuck with this issue from many days.