mirror of
https://scm.tikali.ai/tikali/applications/monky/monky-deployd.git
synced 2026-09-18 05:36:15 +00:00
fix: tenancy.port is the intercept port (443); clear sdk dial error; 0.1.5
install.sh wrote tenancy.port 8081 (the in-pod port) but the monky.tenancy.deploy intercept is 443, so the SDK found no intercept and the check-in failed with 'service not available' followed by the SDK's bare TypeError. Also wrap non-OSError SDK failures in a TransportError that names the host:port and what to check. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KLB7jieMNRkTsJ2epr4Ds1
This commit is contained in:
@@ -104,6 +104,14 @@ class SdkTransport(Transport):
|
||||
return socket.create_connection((host, port), timeout=timeout)
|
||||
except OSError as exc:
|
||||
raise TransportError(f"transport sdk: dial {host}:{port} failed: {exc}") from exc
|
||||
except Exception as exc: # noqa: BLE001 - the SDK raises bare Exception((code, msg)) and TypeError
|
||||
# openziti-sdk-py: an address with NO matching intercept falls through to
|
||||
# PySocket.connect(tuple) → TypeError; a matching intercept the identity may not dial
|
||||
# raises Exception((-18, 'service not available')) — env-qa-02 pilot, 2026-09-07.
|
||||
raise TransportError(
|
||||
f"transport sdk: dial {host}:{port} failed: {exc} — no intercept for that host:port, or this "
|
||||
"identity has no dial policy for the service (check the intercept port and the identity's attrs)"
|
||||
) from exc
|
||||
|
||||
def describe(self) -> str:
|
||||
return f"sdk(identity={self.identity_path})"
|
||||
|
||||
Reference in New Issue
Block a user