Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Handle timeout error. Most likely the server is not running.

天舟99f99f7578df
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 0c754f8dda..1f026ff885 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -119,10 +119,18 @@ axios.interceptors.response.use(
style: "CRITICAL",
title: error.response.data.message,
});
- } else {
- throw error;
}
+ return;
+ } else if (error.code == "ECONNABORTED") {
+ store.dispatch("notification/pushNotification", {
+ module: "bytebase",
+ style: "CRITICAL",
+ title: "Unable to connect to server. Make sure the server is running.",
+ });
+ return;
}
+
+ throw error;
}
);