我正在尝试使用我的Angular2/ionic2应用程序发送HTTP GET请求http.get.HTTP GET请求包含有效的Linkedin访问令牌,并且应该返回一些profiledata.但是,getProfileData()调用时会发生以下错误:
3 229881 group EXCEPTION: Response with status: 0 for URL: null
4 229895 error EXCEPTION: Response with status: 0 for URL: null
5 229909 groupEnd
6 229950 error Uncaught Response with status: 0 for URL: null, http://192.168.178.49:8100/build/js/app.bundle.js, Line: 95774
Run Code Online (Sandbox Code Playgroud)
仍然:
let URL = "https://httpbin.org/get?name=hannes"入职-load.ts:
import { Component } from '@angular/core';
import { NavController, Platform, Alert } from 'ionic-angular';
import { OnboardingHelloPage } from '../onboarding-hello/onboarding-hello';
import { CordovaOauth, LinkedIn } from …Run Code Online (Sandbox Code Playgroud)