0
我嘗試在離子2中創建一個http.get。它在ios上工作正常,但不能在android中工作。Ionic 2 http.get android 500
checkHTTP() {
console.log('checkHTTP');
return this.http.get('http://apiv3.iucnredlist.org/api/v3/version', {}, {})
.then((data) => {
console.log(data);
})
.catch((error) => {
console.log(error);
})
}
這是導致安卓
Object {status: 500, error: "There was an error with the request"} error : "There was an error with the request" status : 500
下面是離子
Cordova CLI: 7.0.1
Ionic Framework Version: 3.5.3
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 2.0.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.4
Xcode version: Not installed