Ionic 应用程序在另一个 HTTP GET 中使用 HTTP GET 崩溃

Ionic app crashing with HTTP GET inside of another HTTP GET

我正在使用 Ionic 4。为了绕过 CORS,我正在使用这个插件 - https://ionicframework.com/docs/native/http/

我打个电话:

newurl = '<some google api url>';
this.http.get(newurl, {}, {}).then(data => {
      newurl = '<some other google api url>'
      this.http.get(newurl, {}, {}).then(data2 => {  //<=== this one fails

      }
}

第二次 GET 调用失败。因为插件是 Cordova,所以我必须在我的设备上 运行 它(不能使用 ionic serve),而且我没有任何日志 - Sentry 日志服务没有向我发送任何东西。

我知道在我升级到 Ionic 4 并使用旧的 Http 模块之前,我可以像这样进行链式调用 - 你现在可以不这样做吗?如果是这样,我做错了什么?

我弄清楚发生了什么事 - 存在具有不同版本 Ok HTTP 的冲突 Cordova 插件 - 所以在排列它们之后,一切正常