diff --git a/openfga_sdk/rest.py b/openfga_sdk/rest.py index 235523a..01cc9c7 100644 --- a/openfga_sdk/rest.py +++ b/openfga_sdk/rest.py @@ -278,6 +278,8 @@ async def handle_response_exception( if 200 <= response.status <= 299: return + if isinstance(response, aiohttp.ClientResponse) and not hasattr(response, "data"): + response.data = await response.read() match response.status: case 400: raise ValidationException(http_resp=response)