MCPcopy
hub / github.com/codeaashu/claude-code / getSSLErrorHint

Function getSSLErrorHint

src/services/api/errorUtils.ts:94–100  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

92 * with a raw SSL code. Surfacing the likely fix saves a support round-trip.
93 */
94export function getSSLErrorHint(error: unknown): string | null {
95 const details = extractConnectionErrorDetails(error)
96 if (!details?.isSSLError) {
97 return null
98 }
99 return `SSL certificate error (${details.code}). If you are behind a corporate proxy or TLS-intercepting firewall, set NODE_EXTRA_CA_CERTS to your CA bundle path, or ask IT to allowlist *.anthropic.com. Run /doctor for details.`
100}
101
102/**
103 * Strips HTML content (e.g., CloudFlare error pages) from a message string,

Callers 3

ConsoleOAuthFlowFunction · 0.85
checkEndpointFunction · 0.85
authLoginFunction · 0.85

Calls 1

Tested by

no test coverage detected