fail to use fastapi to make a casbin request
liutheuniverse opened this issue · 2 comments
liutheuniverse commented
hello,
I got an error on "if e.enforce(sub, dom, obj, act)==True:" in the fast API main py script, it says that "RuntimeError: invalid policy size", and my request definition is " r = sub, dom, obj, act", I use pycasbin, what going wrong there
python=="3.9.10"
casbin-bot commented
@techoner @Nekotoxin
leeqvip commented
@liutheuniverse The size of your policy definition and policy storage must be the same.