Topi Hernández Mares
RuntimeError("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?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
Charith (Cerbos)