Browse Source

UI: Fixed incorrect show error “504 Gateway Time-out” in used haproxy

pull/14392/head
Vladyslav_Prykhodko 10 months ago
parent
commit
9b48ad061b
  1. 4
      ui-ngx/src/app/core/interceptors/global-http-interceptor.ts

4
ui-ngx/src/app/core/interceptors/global-http-interceptor.ts

@ -125,6 +125,10 @@ export class GlobalHttpInterceptor implements HttpInterceptor {
this.showError(req.method + ': ' + req.url + '<br/>' +
errorResponse.status + ': ' + errorResponse.statusText);
}
} else if (errorResponse.status === 504) {
if (!ignoreErrors) {
this.showError('Request timeout');
}
} else {
unhandled = true;
}

Loading…
Cancel
Save