We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug
Traceback (most recent call last): response = self.api.create_alert(alert) File "/usr/lib/python2.7/site-packages/thehive4py/api.py", line 422, in create_alert raise AlertException("Alert create error: {}".format(e)) thehive4py.exceptions.AlertException: Alert create error: ('Connection aborted.', error(104, 'Connection reset by peer'))
The solution for now i use is:
def createAlert(self, alert): alertId = None try: response = self.api.create_alert(alert) if response.status_code == 201: alertId = response.json()['id'] logging.info('Alert created: ' + alertId) else: logging.error('Alert creation failed.') except: logging.error('Alert creation failed. Will make 3 retries.') fail = True tries = 0 while fail and tries != 3: response = self.api.create_alert(alert) if response.status_code == 201: fail = False alertId = response.json()['id'] logging.info('Alert created: ' + alertId) else: tries += 1 logging.error('Alert creation failed. Try #: '+str(tries)) return alertId
And it creates alert with the first try on exception.
The text was updated successfully, but these errors were encountered:
Seems to be solved with rising of Entity size limit
Sorry, something went wrong.
No branches or pull requests
Request Type
Bug
Work Environment
Problem Description
Possible Solutions
The solution for now i use is:
And it creates alert with the first try on exception.
The text was updated successfully, but these errors were encountered: