I seem to get this error on lots of requests curre...
# ask-questions
m
I seem to get this error on lots of requests currently where I should not get it:
Copy code
"Organization does not have premium feature: sample users"
I am trying to delete the force rule for a feature toggle or edit it and this is the only information I seem to get. (Self hosted)
f
Is this blocking you from performing actions or just something that shows up in the logs?
m
It is blocking me from performing actions
I had to now go back to and old revision of the feature toggle before changes was made (because that still works for some reason) but I can not delete a force rule or edit one.
f
Do you see a
Test Feature Rules
section on the feature page?
m
Yeah
f
I think the error is happening because you have saved archetypes, which are a paid feature, but your organization does not have a valid license key. You can try deleting those saved users and see if that helps
m
archetypes? We have 3 active members.
f
You can save sets of attribute values as an "archetype". It will look something like this. Do you see this on the page?
m
We don’t have any test feature rules used for anything
It’s empty
f
Ok, let me look into this and see if I can reproduce. Did you happen to start an enterprise trial at some point and it's now expired?
m
Nope we have never tried the enterprise trial I am fairly certain, it still says “Try enterprise” down to the left.
f
Hmm. What happens exactly when you try to delete/edit a force rule? Does it show an error on the page? Fail silently with a console log?
m
Yeah it says failed to fetch Request URL: https://{OUR_DOMAIN}/archetype/eval/{FEATURE_NAME}/4Request Method: GETStatus Code: 403 Forbidden
image.png
f
Is that the only request that failed? There should be a PUT request to
/feature/${feature.id}/${version}/rule
which is what actually performs the update
m
hmm maybe this is just CORS related 🤔 🤦
but then it would be weird that I could add new rules and add new force rules
and it’s not on the browser at least so on the server then I guess
I am trying to do a save on an override rule but that gives me not PUT, I see some POST the API and some that says:
Copy code
Request URL:
https://{OUR_DOMAIN}/feature/{TOGGLE}/4/rule
Referrer Policy:
strict-origin-when-cross-origin
f
Yes, this sounds like a CORS configuration issue on your server. If you share the specific error your are getting for your PUT/POST requests and any load balancers / reverse proxies you are using, I can try and help debug