question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

message : "Http failure response for (unknown url): 0 Unknown Error"

See original GitHub issue

user.ts:46 ERROR HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: null, ok: false, …} error : ProgressEvent {isTrusted: true, lengthComputable: false, loaded: 0, total: 0, type: "error", …} headers : HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)} message : "Http failure response for (unknown url): 0 Unknown Error" name : "HttpErrorResponse" ok : false status : 0 statusText : "Unknown Error" url : null __proto__ : HttpResponseBase

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

41reactions
alxhubcommented, Feb 6, 2018

Status code 0 indicates a CORS failure.

7reactions
ygr15893000commented, Feb 5, 2018

polyfills.js:3 OPTIONS https://example.com/api/v1/login net::ERR_CONNECTION_REFUSED s @ polyfills.js:3 t.scheduleTask @ polyfills.js:3 onScheduleTask @ polyfills.js:3 t.scheduleTask @ polyfills.js:3 r.scheduleTask @ polyfills.js:3 r.scheduleMacroTask @ polyfills.js:3 (anonymous) @ polyfills.js:3 o.(anonymous function) @ polyfills.js:2 (anonymous) @ http.js:2347 Observable._trySubscribe @ Observable.js:172 Observable.subscribe @ Observable.js:160 subscribeToResult @ subscribeToResult.js:23 MergeMapSubscriber._innerSub @ mergeMap.js:132 MergeMapSubscriber._tryNext @ mergeMap.js:129 MergeMapSubscriber._next @ mergeMap.js:112 Subscriber.next @ Subscriber.js:89 ScalarObservable.subscribe @ ScalarObservable.js:49 Observable.trySubscribe @ Observable.js:172 Observable.subscribe @ Observable.js:160 MergeMapOperator.call @ mergeMap.js:87 Observable.subscribe @ Observable.js:157 FilterOperator.call @ filter.js:60 Observable.subscribe @ Observable.js:157 MapOperator.call @ map.js:56 Observable.subscribe @ Observable.js:157 ConnectableObservable.connect @ ConnectableObservable.js:40 RefCountOperator.call @ refCount.js:24 Observable.subscribe @ Observable.js:157 webpackJsonp.310.User.login @ user.ts:39 webpackJsonp.348.LoginPage.doLogin @ login.ts:37 (anonymous) @ LoginPage.html:11 handleEvent @ core.js:13255 callWithDebugContext @ core.js:14740 debugHandleEvent @ core.js:14327 dispatchEvent @ core.js:9704 (anonymous) @ core.js:10318 (anonymous) @ platform-browser.js:2614 t.invokeTask @ polyfills.js:3 onInvokeTask @ core.js:4620 t.invokeTask @ polyfills.js:3 r.runTask @ polyfills.js:3 e.invokeTask @ polyfills.js:3 p @ polyfills.js:2 v @ polyfills.js:2 **user.ts:46 ERROR HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: “Unknown Error”, url: null, ok: false, …}error: ProgressEvent {isTrusted: true, lengthComputable: false, loaded: 0, total: 0, type: “error”, …}headers: HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)}message: "Http failure response for (unknown url): 0 Unknown Error"name: "HttpErrorResponse"ok: falsestatus: 0statusText: "Unknown Error"url: null__proto: HttpResponseBase** (anonymous) @ user.ts:46 SafeSubscriber.__tryOrUnsub @ Subscriber.js:238 SafeSubscriber.error @ Subscriber.js:197 Subscriber._error @ Subscriber.js:128 Subscriber.error @ Subscriber.js:102 Subscriber._error @ Subscriber.js:128 Subscriber.error @ Subscriber.js:102 Subject.error @ Subject.js:70 Subscriber._error @ Subscriber.js:128 ConnectableSubscriber._error @ ConnectableObservable.js:77 Subscriber.error @ Subscriber.js:102 Subscriber._error @ Subscriber.js:128 Subscriber.error @ Subscriber.js:102 Subscriber._error @ Subscriber.js:128 Subscriber.error @ Subscriber.js:102 OuterSubscriber.notifyError @ OuterSubscriber.js:22 InnerSubscriber._error @ InnerSubscriber.js:26 Subscriber.error @ Subscriber.js:102 onError @ http.js:2283 t.invokeTask @ polyfills.js:3 onInvokeTask @ core.js:4620 t.invokeTask @ polyfills.js:3 r.runTask @ polyfills.js:3 e.invokeTask @ polyfills.js:3 p @ polyfills.js:2 v @ polyfills.js:2 XMLHttpRequest.send (async) s @ polyfills.js:3 t.scheduleTask @ polyfills.js:3 onScheduleTask @ polyfills.js:3 t.scheduleTask @ polyfills.js:3 r.scheduleTask @ polyfills.js:3 r.scheduleMacroTask @ polyfills.js:3 (anonymous) @ polyfills.js:3 o.(anonymous function) @ polyfills.js:2 (anonymous) @ http.js:2347 Observable._trySubscribe @ Observable.js:172 Observable.subscribe @ Observable.js:160 subscribeToResult @ subscribeToResult.js:23 MergeMapSubscriber._innerSub @ mergeMap.js:132 MergeMapSubscriber._tryNext @ mergeMap.js:129 MergeMapSubscriber._next @ mergeMap.js:112 Subscriber.next @ Subscriber.js:89 ScalarObservable._subscribe @ ScalarObservable.js:49 Observable._trySubscribe @ Observable.js:172 Observable.subscribe @ Observable.js:160 MergeMapOperator.call @ mergeMap.js:87 Observable.subscribe @ Observable.js:157 FilterOperator.call @ filter.js:60 Observable.subscribe @ Observable.js:157 MapOperator.call @ map.js:56 Observable.subscribe @ Observable.js:157 ConnectableObservable.connect @ ConnectableObservable.js:40 RefCountOperator.call @ refCount.js:24 Observable.subscribe @ Observable.js:157 webpackJsonp.310.User.login @ user.ts:39 webpackJsonp.348.LoginPage.doLogin @ login.ts:37 (anonymous) @ LoginPage.html:11 handleEvent @ core.js:13255 callWithDebugContext @ core.js:14740 debugHandleEvent @ core.js:14327 dispatchEvent @ core.js:9704 (anonymous) @ core.js:10318 (anonymous) @ platform-browser.js:2614 t.invokeTask @ polyfills.js:3 onInvokeTask @ core.js:4620 t.invokeTask @ polyfills.js:3 r.runTask @ polyfills.js:3 e.invokeTask @ polyfills.js:3 p @ polyfills.js:2 v @ polyfills.js:2 polyfills.js:3 XHR failed loading: OPTIONS “https://example.com/api/v1/login”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I get "Http failure response for (unknown url) - Stack Overflow
Ok, one solution is, go to the https:// url that you have, and click on the lock icon beside the https, download the...
Read more >
Http failure response for (unknown url): 0 ... - Google Groups
Error 0 is what you get when de request does not go out. Most common cause of this is that CORS is not...
Read more >
http failure response 0 unknown error - You.com | The AI ...
Case 0 is caused by your outbound request not departing. This could be because CORS or some security policy stopped your request from...
Read more >
0 Unknown Error when i try to log into mixer? | Firefox ...
Http failure response for (unknown url ): 0 Unknown Error shows when I try to log into mixer. I just downloaded the newest...
Read more >
Http failure response for (unknown url): 0 Unknown Error
Hi,. I got same "error message" when I try open some course-pages with debugger for android phone. Anyone can help, give some comments ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found