-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix added warning IP list too large #30217
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1337,6 +1337,7 @@ | |
"use_ip_nt_range_tags_include", "use_ip_nt_range_tags_exclude", | ||
"active", | ||
"scanners_in_network", | ||
"fqdn", | ||
"recurrence", | ||
"end_after_mins", | ||
"iscanner_id", | ||
|
@@ -1488,7 +1489,10 @@ | |
|
||
@staticmethod | ||
def error_handler(res): | ||
err_msg = f"Error in API call [{res.status_code}] - {res.reason}" | ||
err_msg = "" | ||
if res.status_code == 414 or res.status_code == 520: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you plesae add a reference (API documentetion) for this error (with status codes)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is an error when we provide to the ip field an string of approximately between 5000 and 12000 characters containing IP, we receive a 414 error from the API, when we provide more than approximately 12000 characters containing IPs, we receive a 520 error, We do not know if it is an error related to the Demisto processing of large characters in the URL |
||
err_msg += "If this error was produced by a schedule-scan-create, please execute it again with IP list of less than 5000 characters\n\n" | ||
err_msg += f"Error in API call [{res.status_code}] - {res.reason}" | ||
try: | ||
simple_response = get_simple_response_from_raw(parse_raw_response(res.text)) | ||
err_msg = f'{err_msg}\nError Code: {simple_response.get("CODE")}\nError Message: {simple_response.get("TEXT")}' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you add it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it because Qualysv2 lacked the parameter fqdn
If not added, Demisto returns an error: