aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications
diff options
context:
space:
mode:
Diffstat (limited to 'juick-notifications')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java b/juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java
index 79459d72..0cecb597 100644
--- a/juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java
+++ b/juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java
@@ -56,8 +56,8 @@ public class JuickServerWebsocketConfiguration {
try {
ResponseEntity<String> response = rest().exchange("https://api.juick.com/auth",
HttpMethod.GET, null, String.class);
- hash = jsonMapper.readValue(response.getBody(), String.class);
- } catch (HttpClientErrorException | IOException e) {
+ hash = response.getBody();
+ } catch (HttpClientErrorException e) {
logger.warn("service component is not authenticated", e);
}
String websocketURI = UriComponentsBuilder.fromUriString(baseUri)