首页 > 解决方案 > 错误错误:未捕获(承诺):ProgressEvent:{“isTrusted”:true}

问题描述

我正在从我的 ionic 应用程序向 api 发出 put 请求:

     updateDeviceToken(params):Promise<any>{
        return this.http
          .put(this.endpoint + '/devicetoken',params)
          .toPromise()
          .then((response: any) => response);
      }

我收到此错误:

错误错误:未捕获(承诺):ProgressEvent:{“isTrusted”:true}

当我在网络上运行应用程序时,我没有收到任何错误并且 PUT 请求已正确完成,每当我在模拟器或真实设备上运行时,我都会收到此错误

标签: angularionic-framework

解决方案


推荐阅读