Topi Hernández Mares
06/22/2022, 2:33 PMRuntimeError("Cannot send a request, as the client has been closed.")
This only happens when I make two or more requests to Cerbos with the SDKTopi Hernández Mares
06/22/2022, 2:35 PMfor id in profile_skills_ids:
profile_skill = self.update(id=id, level=level)
And inside update
I have the client.is_allowed...
for checking the auth with CerbosCharith (Cerbos)
close()
is called)Charith (Cerbos)
Charith (Cerbos)
update
method?Topi Hernández Mares
06/22/2022, 2:58 PMTopi Hernández Mares
06/22/2022, 2:59 PMCharith (Cerbos)
with self._cerbos_client
). So, after the first call to update
the client gets closed and no longer usableCharith (Cerbos)
with
and it should workTopi Hernández Mares
06/22/2022, 3:01 PMTopi Hernández Mares
06/22/2022, 3:03 PMCharith (Cerbos)