Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAF only license triggers 'This feature is currently not licensed.', 'error-code': 'IMP-10129'} #52

Open
andreireiand opened this issue Aug 20, 2020 · 0 comments

Comments

@andreireiand
Copy link

for a WAF only FLEX AWS license, below error sometimes happens:

File "/usr/lib/python3.8/site-packages/imperva_sdk/DbService.py", line 100, in _get_all_db_services
res = connection._mx_api('GET', '/conf/dbServices/%s/%s' % (Site, ServerGroup))
File "/usr/lib/python3.8/site-packages/imperva_sdk/MxConnection.py", line 261, in _mx_api
raise MxException("MX returned errors - %s" % str(error_message))
imperva_sdk.core.MxException: MX returned errors - [{'description': 'This feature is currently not licensed.', 'error-code': 'IMP-10129'}]

The fix that seems to work (for me) is:

ServerGroup.py - get_all_db_services(self) be slightly modified to return empty list [] when an exception happens =>

def get_all_db_services(self):
try:
return self._connection.get_all_db_services(Site=self._Site, ServerGroup=self.Name)
except:
return []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant