Open Harris-H opened 10 months ago
@Harris-H can you provide a full example? Which API did you call? and paste the IDE error directly
@Harris-H can you provide a full example? Which API did you call? and paste the IDE error directly
When I call the NewEnforcer() function API, I will report an error: extraneous or missing "in quoted field". However, I will not report an error when I do not have a policy in the database. Testing with request also runs normally, and creating an Enforcer again after adding a policy will report an error.
I found that the first time I created an Enforcer when the database was empty and checked if the request was fulfilled without any issues, but when the database included these policies, creating an Enforcer would result in an error message: extraneous or missing "in quoted field". What is the problem? Please help me.
I am using an adapter based on MongoDB:
My model:
My policy:
My request(s):