title: Http failure response for (unknown url): 0 Unknown Error","error":{"isTrusted":true}}
body: <p>I have on my logs this error which I tried to reproduce with different devices but I have never been able to.</p>
  
  <p><code>{“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}}</code></p>
  
  <p>This error comes from this function which calls to google api:</p>
  
  <pre><code>return new Promise((resolve, reject) =&gt; {
  this.http
  .post(
  “https://automl.googleapis.com/v1beta1/projects/XXXXX/locations/us-central1/models/XXXXXXXXXX:predict”,
  file,
  {
  headers: {“Authorization”:"Bearer "+accessToken}
  }
  )
  .timeout(600000)
  .map(res =&gt; res)
  .toPromise()
  .then(
  //call then instead of subscribe to form the promise chain.
  data =&gt; {
  resolve(data);
  },
  err =&gt; {
  reject(err);
  this.utilsService.registerEvent(err,userId,version)
  }
  );
  });
  }
  </code></pre>
  
  <p>I don’t know how to solve it and how can reproduce it. It is generating 10 or 15 errors a day. Can anybody help me? Thanks!</p>