Description
When initiating remote pairing with remote:beginPairing, if the Tailscale HTTPS endpoint or local TLS port is unreachable or outdated (e.g. pointing to a port from a prior session), the TLS probe times out after 5 seconds:
Error occurred in handler for 'remote:beginPairing': Error: Aiden Remote TLS endpoint timed out.
at Timeout._onTimeout (file:///home/sambit/projects/aiden-agent/build/main/index.js:55636:22)
at listOnTimeout (node:internal/timers:605:17)
at process.processTimers (node:internal/timers:541:7)
Steps to Reproduce
- Start Aiden when Tailscale Serve route points to an inactive port or when the TLS endpoint cannot be reached.
- In the UI or via client call, trigger
remote:beginPairing.
- Wait 5 seconds.
- An unhandled exception is logged by the
remote:beginPairing IPC handler.
Expected Behavior
The timeout in fetchTlsServerSpkiSha256 should be handled cleanly, returning a structured error outcome to the renderer (e.g. indicating the endpoint is unreachable or timed out) rather than bubbling as an unhandled rejection in the IPC handler.
Description
When initiating remote pairing with
remote:beginPairing, if the Tailscale HTTPS endpoint or local TLS port is unreachable or outdated (e.g. pointing to a port from a prior session), the TLS probe times out after 5 seconds:Steps to Reproduce
remote:beginPairing.remote:beginPairingIPC handler.Expected Behavior
The timeout in
fetchTlsServerSpkiSha256should be handled cleanly, returning a structured error outcome to the renderer (e.g. indicating the endpoint is unreachable or timed out) rather than bubbling as an unhandled rejection in the IPC handler.