Angular is running in the development mode. Call enableProdMode() to enable the production mode.
LOG from device OnePlus 3T: "headers": {}
LOG from device OnePlus 3T: },
LOG from device OnePlus 3T: "status": 0,
LOG from device OnePlus 3T: "headers": {
LOG from device OnePlus 3T: {
LOG from device OnePlus 3T: "lazyUpdate": null,
LOG from device OnePlus 3T: "statusText": "Unknown Error",
LOG from device OnePlus 3T: "url": "http://myurl",
LOG from device OnePlus 3T: "ok": false,
LOG from device OnePlus 3T: "name": "HttpErrorResponse",
LOG from device OnePlus 3T: "message": "Http failure response for http://myurl: 0 Unknown Error",
LOG from device OnePlus 3T: "error": {
LOG from device OnePlus 3T: "originalStack": "Error: java.io.IOException: Cleartext HTTP traffic to myIP not permittedat new ZoneAwareError (file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:1298:33)
at onRequestComplete (file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/http/http-request/http-request.js:54:34)
at Object.onComplete (file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/http/http-request/http-request.js:43:13)",LOG from device OnePlus 3T: "zoneAwareStack": "Error: java.io.IOException: Cleartext HTTP traffic to myIP not perm...
LOG from device OnePlus 3T: "normalizedNames": {},
Asked
Active
Viewed 116 times
0
-
4Please do provide more insight into the state of your problem. How did this problem occur? what were you trying to achieve? so that other community members can give you alternative solutions – Waleed Alrashed Jun 04 '20 at 08:51
-
this problem occur when i try to login my app, this works in android v.7 , but it show this error while trying with android v 9 – Aravindh Jun 04 '20 at 08:56
-
i have added the network_security_config_xml file and i have also added this code android:usesCleartextTraffic="true" in my android manifest file but still i am getting this error – Aravindh Jun 04 '20 at 08:59
1 Answers
0
I had this problem. I tried different approaches that didn't work. I finally resolved to tunnel my localhost to the internet using localtunnel and used the link provided as my base url in my http calls.
I also found a number of useful Stack overflow answers that resolved similar issues using other approaches.

King
- 2,128
- 1
- 15
- 15