diff --git a/build.gradle b/build.gradle index 7eb33896..8a81a982 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ plugins { } group = 'online.hatsunemiku' -version = '1.0.2' +version = '1.0.3' sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 diff --git a/src/main/java/online/hatsunemiku/tachideskvaadinui/view/ServerStartView.java b/src/main/java/online/hatsunemiku/tachideskvaadinui/view/ServerStartView.java index 8e5f6db1..b2b245ed 100644 --- a/src/main/java/online/hatsunemiku/tachideskvaadinui/view/ServerStartView.java +++ b/src/main/java/online/hatsunemiku/tachideskvaadinui/view/ServerStartView.java @@ -18,6 +18,7 @@ import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.component.progressbar.ProgressBar; import com.vaadin.flow.router.Route; +import feign.FeignException; import java.util.Optional; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; @@ -127,7 +128,7 @@ private void updateUi() { } private void checkConnection() { - String url = settingsService.getSettings().getUrl() + "/api/v1/meta"; + String url = settingsService.getSettings().getUrl() + "/api/v1/settings/about"; try { var response = client.getForEntity(url, Void.class); @@ -147,7 +148,7 @@ private void checkConnection() { executor.shutdownNow(); } - } catch (Exception e) { + } catch (FeignException e) { logger.debug("No Connection to Server yet", e); } }