def send(self, request: Request, type_: Type[T]) -> T:
response = self.middleware(request, self.send_inner)
if response.status_code in [200, 201, 202]:
try:
return parse_as_type(response.json(), type_)
except ValidationError as e:
raise ResponseHandlingException(e)
raise UnexpectedResponse.for_response(response)
When I try to call the method client.http.service_api.healthz(), I find the return value is "healthz check passed", but the api uses resp.json() which causes a crash!
When I try to call the method client.http.service_api.healthz(), I find the return value is "healthz check passed", but the api uses resp.json() which causes a crash!