Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Http failure response for (unknown url): 0 Unknown Error #190

Open
gerokeller opened this issue Nov 21, 2017 · 1 comment
Open

Http failure response for (unknown url): 0 Unknown Error #190

gerokeller opened this issue Nov 21, 2017 · 1 comment

Comments

@gerokeller
Copy link

Hi,

I'm trying to make an http post request with the @angular/[email protected] client.

The server is configured like this:

Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE

The specific resource that I'm trying to access doesn't support POST though, so it errors with 405 Method Not Allowed.
Instead of receiving a HttpErrorResponse with a status of 405, I'm getting this:

{
  "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
  }
}

This only happens on iOS with WKWebView enabled.

Is this expected behaviour? Shouldn't the status at least be 405? Why is url null?

@Piraban
Copy link

Piraban commented Jan 17, 2018

Have you found any solution ? I am facing same issue more than 3 days spending to resolve it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants