XX-net/XX-Net · warning

check_appid %s %r

Error message

check_appid %s %r

What it means

test_appid wraps test_appid_exist; any exception during the probe (SSL handshake failure, connection reset, timeout, response read error) is caught, logged with this warning, and the next IP/socket is tried. It means the probe itself blew up rather than returning a clean boolean.

Source

Thrown at code/default/gae_proxy/local/web_control.py:83

    content = response.read()
    if b"GoAgent" not in content:
        # xlog.warn("app check %s content:%s", appid, content)
        return False

    return True


def test_appid(appid):
    for i in range(0, 3):
        ssl_sock = direct_front.connect_manager.get_ssl_connection()
        if not ssl_sock:
            continue

        try:
            return test_appid_exist(ssl_sock, appid)
        except Exception as e:
            xlog.warn("check_appid %s %r", appid, e)
            continue

    return False


def test_appids(appids):
    appid_list = appids.split("|")
    fail_appid_list = []
    for appid in appid_list:
        if not test_appid(appid):
            fail_appid_list.append(appid)
        else:
            # return success if one appid is work
            # just reduce wait time
            # here can be more ui friendly.
            return []
    return fail_appid_list

View on GitHub (pinned to cfa5bc17b6)

Solutions

  1. Retry the test (transient network errors are common)
  2. Check general connectivity to Google IPs; switch network or enable IPv6/other transport
  3. Verify SSL/TLS works (no MITM proxy breaking cert chain)
Defensive patterns

Strategy: retry

Try / catch

for attempt in range(3):
    try:
        return test_appid(ssl_sock, appid)
    except Exception as e:
        xlog.warn('check_appid %s %r', appid, e)
        time.sleep(1)

Prevention

When it happens

Trigger: Establishing an SSL connection to Google IP fails mid-request, response.read() raises, or the appid check throws for network reasons while iterating candidate sockets.

Common situations: Unstable network to Google servers, IP blocking, TLS interception by a firewall, transient resets during appid testing at startup.

Related errors


AI-assisted analysis of XX-net/XX-Net@cfa5bc17b6 (2026-08-27). Data as JSON: /api/errors/a8f1019626d814d8. Report an issue: GitHub.