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 SDKfor 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)update
method?Topi Hernández Mares
06/22/2022, 2:58 PMCharith (Cerbos)
with self._cerbos_client
). So, after the first call to update
the client gets closed and no longer usablewith
and it should workTopi Hernández Mares
06/22/2022, 3:01 PMCharith (Cerbos)