]
for request in request_paths:
- logger.debug("path[%s]='%s',request='%s'", type(path), path, request)
- if path is None or path == request or path == f"http://{domain}{path}" or path == f"https://{domain}{path}":
+ logger.debug("request='%s'", request)
+ http_url = f"http://{domain}{path}"
+ https_url = f"https://{domain}{path}"
+
+ logger.debug("path[%s]='%s',request='%s',http_url='%s',https_url='%s'", type(path), path, request, http_url, https_url)
+ if path is None or path in [request, http_url, https_url]:
logger.debug("Fetching request='%s' from domain='%s' ...", request, domain)
- if path in [f"http://{domain}{path}", f"https://{domain}{path}"]:
+ if path in [http_url, https_url]:
logger.debug("domain='%s',path='%s' has protocol in path, splitting ...", domain, path)
components = urlparse(path)
path = components.path
)
logger.debug("data[]='%s'", type(data))
- if "error_message" not in data:
+ if "error_message" not in data and "json" in data:
logger.debug("Success: request='%s'", request)
instances.set_detection_mode(domain, "STATIC_CHECK")
instances.set_nodeinfo_url(domain, request)