@iothemhz wrote:
I am using ionic native to build my application on android.
Sometimes when I run “ionic cordova run android --livereload” urls don’t work
and I am getting an error from the provider
{“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}}Also a strange fact is that get always works. when I use post, or put I have the issue.
I am breaking my head to see whats wrong with it… urls seem ok no CORS issues since I am on my localhost and its the same ip. I am using config.ts to put the urls in there… Please can you tell me what I am doing wrong? I am very new to ionic.
This is my ionic info result
{ionic info
[WARN] The pro_id field in .\ionic.config.json has been deprecated.Ionic Pro has been renamed to Ionic Appflow! We've copied the value in pro_id to id, but you may want to unset the deprecated property: ionic config unset pro_id
Ionic:
ionic (Ionic CLI) : 4.12.0 (C:\Users\themhz\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.8Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
Cordova Plugins : not availableSystem:
Android SDK Tools : 26.1.1 (C:\Users\themhz\AppData\Local\Android\Sdk)
NodeJS : v8.11.1 (C:\Program Files\nodejs\node.exe)
npm : 6.0.0
OS : Windows 10PS C:\xampp\htdocs\fcmsoft_m>
}
Posts: 1
Participants: 1