Hi,
I belive sample code shoud be based on AsyncEnforcer not Enforcer.
e = casbin.AsyncEnforcer('path/to/model.conf', adapter)
with Enforcer I receive following error:
File "...venv/lib/python3.11/site-packages/casbin/core_enforcer.py", line 92, in init_with_model_and_adapter
raise RuntimeError("Invalid parameters for enforcer.")
RuntimeError: Invalid parameters for enforcer.
Hi, I belive sample code shoud be based on AsyncEnforcer not Enforcer.
e = casbin.AsyncEnforcer('path/to/model.conf', adapter)
with Enforcer I receive following error:
File "...venv/lib/python3.11/site-packages/casbin/core_enforcer.py", line 92, in init_with_model_and_adapter raise RuntimeError("Invalid parameters for enforcer.") RuntimeError: Invalid parameters for enforcer.