Skip to content

Commit

Permalink
Details.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Jan 9, 2024
1 parent e7356ee commit 754e007
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public enum Prefix {
media_api_backend(Deployment.media_api_backend),
parkpost(null),
media_api_backend_rcrs(null),
media_api_backend_prepr(null),
pages_publisher(Deployment.pages_publisher),
media_publisher(Deployment.media_publisher),
media(Deployment.media),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.io.IOException;
import java.io.InputStream;
import java.net.ConnectException;
import java.net.URI;
import java.net.http.*;
import java.time.Duration;
Expand Down Expand Up @@ -71,7 +72,7 @@ public static VersionResult getVersionFromSwagger(String baseUrl, String default
log.warn("No swagger found at {} -> {}", url, response.statusCode());
return VersionResult.builder().version(defaultVersion).available(false).build();
}
} catch (JsonParseException ex) {
} catch (JsonParseException | ConnectException ex) {
log.warn(url + ": " + ex.getMessage(), ex);
return VersionResult.builder().version(defaultVersion).available(false).build();
} catch (IOException | InterruptedException ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public String getVersion() {
}


public boolean isAvailable() {
public boolean isAvailable() {
getVersion();
return version.get().isAvailable();
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>nl.vpro.poms</groupId>
<artifactId>poms-parent</artifactId>
<version>7.10.1</version>
<version>7.11-SNAPSHOT</version>
</parent>
<groupId>nl.vpro.poms.api-clients</groupId>
<artifactId>api-client-parent</artifactId>
Expand Down

0 comments on commit 754e007

Please sign in to comment.