mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Ignore 504 errors while updating (#6743)
This commit is contained in:
parent
448e9b71b8
commit
d8e88bc58d
@ -161,12 +161,19 @@ export class HassioUpdate extends LitElement {
|
||||
try {
|
||||
await this.hass.callApi<HassioResponse<void>>("POST", item.apiPath);
|
||||
} catch (err) {
|
||||
// Only show an error if the status code was not 504 (timeout reported by proxies)
|
||||
if (err.status_code !== 504) {
|
||||
showAlertDialog(this, {
|
||||
title: "Update failed",
|
||||
text:
|
||||
typeof err === "object" ? err.body?.message || "Unkown error" : err,
|
||||
typeof err === "object"
|
||||
? typeof err.body === "object"
|
||||
? err.body.message
|
||||
: err.body || "Unkown error"
|
||||
: err,
|
||||
});
|
||||
}
|
||||
}
|
||||
item.progress = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user