From c3f62f958b33cad9809032902e73f36a10c06ec5 Mon Sep 17 00:00:00 2001 From: fubuloubu <3859395+fubuloubu@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:06:16 -0400 Subject: [PATCH] fix(cluster): handle errors w/ openapi fetch --- silverback/cluster/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/silverback/cluster/client.py b/silverback/cluster/client.py index 73aba9d5..0090c7ba 100644 --- a/silverback/cluster/client.py +++ b/silverback/cluster/client.py @@ -170,7 +170,9 @@ def send(self, request, *args, **kwargs): @property @cache def openapi_schema(self) -> dict: - return self.get("/openapi.json").json() + response = self.get("/openapi.json") + handle_error_with_response(response) + return response.json() @property def version(self) -> str: