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
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 =>
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 []
The text was updated successfully, but these errors were encountered: