{"record":{"id":"fca91ba2538692a0","repo":"XX-net/XX-Net","slug":"connect-fail-fca91b","errorCode":null,"errorMessage":"connect fail","messagePattern":"connect fail","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"code/default/x_tunnel/local/cloudfront_front/check_ip.py","lineNumber":147,"sourceCode":"    if len(sys.argv) > 3:\n        wait_time = int(sys.argv[3])\n    else:\n        wait_time = 0\n\n    config_path = os.path.join(module_data_path, \"cloudfront_front.json\")\n    config = Config(config_path)\n\n    openssl_context = SSLContext(logger, support_http2=True)\n    host_manager = HostManagerBase()\n    connect_creator = ConnectCreator(logger, config, openssl_context, host_manager, debug=True)\n    check_ip = CheckIp(logger, config, connect_creator)\n\n    #check_all_ip(check_ip)\n    #exit(0)\n\n    res = check_ip.check_ip(ip, sni=sni, host=host, wait_time=wait_time)\n    if not res:\n        xlog.warn(\"connect fail\")\n    elif res.ok:\n        xlog.info(\"success, domain:%s handshake:%d\", res.host, res.handshake_time)\n        xlog.info(\"response:%s\",res.response.content)\n    else:\n        xlog.warn(\"not support\")","sourceCodeStart":129,"sourceCodeEnd":152,"githubUrl":"https://github.com/XX-net/XX-Net/blob/cfa5bc17b67676e467f37ec50766127e0ab5f0aa/code/default/x_tunnel/local/cloudfront_front/check_ip.py#L129-L152","documentation":"CloudFront check_ip script main: check_ip returned None — the connect/handshake never produced a result within the wait window.","triggerScenarios":"Running check_ip.py with an unreachable CloudFront IP or too-small wait_time.","commonSituations":"Dead IP, blocked port 443, or firewall resetting TLS to CloudFront endpoints.","solutions":["Increase wait_time","Verify IP:443 reachability","Confirm the domain is a CloudFront distribution"],"exampleFix":null,"handlingStrategy":"retry","validationCode":"import socket\nsocket.setdefaulttimeout(10)\nsocket.gethostbyname(ip)  # baseline reachability check","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Raise wait_time on slow networks","Verify 443 outbound before scanning"],"tags":["cloudfront","ip-check","connect-failed","tooling"],"backgroundTag":"ip-health-check-failed","analyzedSha":"cfa5bc17b67676e467f37ec50766127e0ab5f0aa","analyzedAt":"2026-08-27T19:28:28.225Z","schemaVersion":2},"datasetVersion":"2026-08-28T00:17:15.603Z"}