diff --git a/back/src/org/kar/karanage/api/HealthCheck.java b/back/src/org/kar/karanage/api/HealthCheck.java index c71a77d..a5d0f68 100644 --- a/back/src/org/kar/karanage/api/HealthCheck.java +++ b/back/src/org/kar/karanage/api/HealthCheck.java @@ -20,7 +20,7 @@ public class HealthCheck { @GET @PermitAll public Response getHealth() { - if (JWTWrapper.getPublicKey() == null) { + if (JWTWrapper.getPublicKeyJson() == null) { return Response.status(500).entity(new HealthResult("Missing Jwt public token")).build(); } return Response.status(200).entity(new HealthResult("alive and kicking")).build(); diff --git a/client/python/karanage/karanage/state.py b/client/python/karanage/karanage/state.py index 91e37aa..f1f01df 100644 --- a/client/python/karanage/karanage/state.py +++ b/client/python/karanage/karanage/state.py @@ -32,7 +32,7 @@ class KaranageState: return self.connection.get_url(service) return f"{self.connection.get_url(service)}/{topic}" - def send(self, topic: str, data: Optional[Dict], state: StateSystem = StateSystem.OK) -> None: + def send(self, topic: str, data: Optional[Dict] = None, state: StateSystem = StateSystem.OK) -> None: """Send a message to the server. :param topic: Topic where to publish the data. :param data: Data to send to the server