fix too many errors in chrome (#1130)
This commit is contained in:
parent
93573d0bfe
commit
0cad649ab9
@ -308,7 +308,7 @@ export class Crawls extends LiteElement {
|
||||
try {
|
||||
this.crawls = await this.getCrawls(params);
|
||||
} catch (e: any) {
|
||||
if (e === ABORT_REASON_THROTTLE) {
|
||||
if (e.name === "AbortError") {
|
||||
console.debug("Fetch crawls aborted to throttle");
|
||||
} else {
|
||||
this.notify({
|
||||
|
@ -742,7 +742,7 @@ export class CollectionDetail extends LiteElement {
|
||||
try {
|
||||
this.archivedItems = await this.getArchivedItems(params);
|
||||
} catch (e: any) {
|
||||
if (e === ABORT_REASON_THROTTLE) {
|
||||
if (e.name === "AbortError") {
|
||||
console.debug("Fetch web captures aborted to throttle");
|
||||
} else {
|
||||
this.notify({
|
||||
|
@ -597,7 +597,7 @@ export class CrawlsList extends LiteElement {
|
||||
try {
|
||||
this.archivedItems = await this.getArchivedItems(params);
|
||||
} catch (e: any) {
|
||||
if (e === ABORT_REASON_THROTTLE) {
|
||||
if (e.name === "AbortError") {
|
||||
console.debug("Fetch archived items aborted to throttle");
|
||||
} else {
|
||||
this.notify({
|
||||
|
@ -160,18 +160,16 @@ export class WorkflowsList extends LiteElement {
|
||||
const workflows = await this.getWorkflows(params);
|
||||
this.workflows = workflows;
|
||||
} catch (e: any) {
|
||||
if (e === ABORT_REASON_THROTTLE) {
|
||||
if (e.isApiError) {
|
||||
this.fetchErrorStatusCode = e.statusCode;
|
||||
} else if (e.name === "AbortError") {
|
||||
console.debug("Fetch archived items aborted to throttle");
|
||||
} else {
|
||||
if (e.isApiError) {
|
||||
this.fetchErrorStatusCode = e.statusCode;
|
||||
} else {
|
||||
this.notify({
|
||||
message: msg("Sorry, couldn't retrieve Workflows at this time."),
|
||||
variant: "danger",
|
||||
icon: "exclamation-octagon",
|
||||
});
|
||||
}
|
||||
this.notify({
|
||||
message: msg("Sorry, couldn't retrieve Workflows at this time."),
|
||||
variant: "danger",
|
||||
icon: "exclamation-octagon",
|
||||
});
|
||||
}
|
||||
}
|
||||
this.isFetching = false;
|
||||
|
Loading…
Reference in New Issue
Block a user