You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: