"message":"Http failure response for (unknown url): 0 Unknown Error","error":{"isTrusted":true}

HI All ,
I am getting error in mobile app Andriod phone. When i am running in browser through ionic serve i am not getting any error and login to the my application through rest api using browser. The only problems happen when I make signed production app and put in my phone for testing purpose the above mention error is thrown. The app is generated using cardova

{“headers”:{“normalizedNames”:{},“lazyUpdate”:null,“headers”:{}},“status”:0,“statusText”:“Unknown Error”,“url”:null,“ok”:false,“name”:“HttpErrorResponse”,“message”:“Http failure response for (unknown url): 0 Unknown Error”,“error”:{“isTrusted”:true}}

Please help. I am using the Laraval 5.8 as backed and using rest api for the same. The api are live are working fine.
Ionic:

Ionic CLI : 6.9.2 (C:\Users\rajat\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 5.1.1
@angular-devkit/build-angular : 0.901.7
@angular-devkit/schematics : 9.1.7
@angular/cli : 9.1.7
@ionic/angular-toolkit : 2.2.0

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 5 other plugins)

Utility:

cordova-res : not installed
native-run : 1.0.0

System:

NodeJS : v12.14.1 (C:\Program Files\nodejs\node.exe)
npm : 6.13.4
OS : Windows 10

The api is working in andriod 7 but not working in andriod 9

Estou com o mesmo problema. Não está funcionando no android 10. Já encontrou a solução?

1 Like

Make sure to use https 9+ has security changes