{"record":{"id":"2962df0d1d5bfe79","repo":"XX-net/XX-Net","slug":"test-s-fail","errorCode":null,"errorMessage":"test %s fail","messagePattern":"test (.+?) fail","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"code/default/gae_proxy/local/check_local_network.py","lineNumber":136,"sourceCode":"                xlog.exception(\"test %s e:%r\", url, e)\n\n        return False\n\n    def _simple_check_worker(self):\n        time_now = time.time()\n\n        self._checking_lock.acquire()\n        self._checking_num += 1\n        self._checking_lock.release()\n\n        network_ok = False\n        for url in self.urls:\n            if self._test_host(url):\n                network_ok = True\n                break\n            else:\n                if __name__ == \"__main__\":\n                    xlog.warn(\"test %s fail\", url)\n                time.sleep(1)\n\n        if network_ok:\n            self.last_check_time = time.time()\n            self.report_ok()\n            xlog.debug(\"network %s is ok, cost:%d ms\", self.type, 1000 * (time.time() - time_now))\n        else:\n            xlog.warn(\"network %s fail\", self.type)\n            self.network_stat = \"Fail\"\n            self.last_check_time = time.time()\n\n        self._checking_lock.acquire()\n        self._checking_num -= 1\n        self._checking_lock.release()\n\n    def triger_check_network(self, fail=False, force=False):\n        time_now = time.time()\n        if not force:","sourceCodeStart":118,"sourceCodeEnd":154,"githubUrl":"https://github.com/XX-net/XX-Net/blob/cfa5bc17b67676e467f37ec50766127e0ab5f0aa/code/default/gae_proxy/local/check_local_network.py#L118-L154","documentation":"Logged only when running check_local_network.py as a script (__name__ == '__main__'): a test URL from self.urls failed _test_host and the loop sleeps 1s before trying the next URL. It marks individual URL failures during connectivity testing.","triggerScenarios":"Running the module directly while the tested host(s) are unreachable: blocked domains, no internet, or DNS failure for that specific URL.","commonSituations":"Testing connectivity of Google/firewall-probe URLs on a network where some are blocked by design; debugging network status detection standalone.","solutions":["Expected for blocked URLs in censored networks — check whether at least one URL succeeds","Verify basic internet works (ping/curl an allowed site)","Add or configure fallback test URLs appropriate to your network","Run with the module's main to see per-URL results, then fix DNS/proxy issues"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Configure multiple test URLs so one block doesn't fail the check","Use this module standalone to diagnose which URLs are reachable"],"tags":["network","connectivity-check","diagnostics"],"backgroundTag":"connectivity-check-failed","analyzedSha":"cfa5bc17b67676e467f37ec50766127e0ab5f0aa","analyzedAt":"2026-08-27T19:28:28.225Z","schemaVersion":2},"datasetVersion":"2026-08-28T00:17:15.603Z"}