XX-net/XX-Net · info
test %s fail
Error message
test %s fail
What it means
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.
Source
Thrown at code/default/gae_proxy/local/check_local_network.py:136
xlog.exception("test %s e:%r", url, e)
return False
def _simple_check_worker(self):
time_now = time.time()
self._checking_lock.acquire()
self._checking_num += 1
self._checking_lock.release()
network_ok = False
for url in self.urls:
if self._test_host(url):
network_ok = True
break
else:
if __name__ == "__main__":
xlog.warn("test %s fail", url)
time.sleep(1)
if network_ok:
self.last_check_time = time.time()
self.report_ok()
xlog.debug("network %s is ok, cost:%d ms", self.type, 1000 * (time.time() - time_now))
else:
xlog.warn("network %s fail", self.type)
self.network_stat = "Fail"
self.last_check_time = time.time()
self._checking_lock.acquire()
self._checking_num -= 1
self._checking_lock.release()
def triger_check_network(self, fail=False, force=False):
time_now = time.time()
if not force:View on GitHub (pinned to cfa5bc17b6)
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
Defensive patterns
Strategy: retry
Prevention
- Configure multiple test URLs so one block doesn't fail the check
- Use this module standalone to diagnose which URLs are reachable
When it happens
Trigger: Running the module directly while the tested host(s) are unreachable: blocked domains, no internet, or DNS failure for that specific URL.
Common situations: Testing connectivity of Google/firewall-probe URLs on a network where some are blocked by design; debugging network status detection standalone.
Related errors
AI-assisted analysis of XX-net/XX-Net@cfa5bc17b6 (2026-08-27).
Data as JSON: /api/errors/2962df0d1d5bfe79.
Report an issue: GitHub.