{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When connecting repository or testing connectivity, you might encounter the following error:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GitLab connectivity test failed: RPC Call failed: [3] GitLab unreachable: error sending request for url (https://gitlab.jamerly.dev/api/v4/version)"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This is usually caused by "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"local network proxy settings"}]},{"type":"text","value":" or "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"untrusted SSL/TLS certificates"}]},{"type":"text","value":" in your environment."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Cause 1: Terminal Shell Proxy Environment Variables"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If you have global proxy variables configured (like "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"http_proxy"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"https_proxy"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ALL_PROXY"}]},{"type":"text","value":" pointing to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"127.0.0.1:7890"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"7892"}]},{"type":"text","value":"), Code Formula will route all network requests through the proxy, leading to connection failures for local/private GitLab hosts."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Verification"}]},{"type":"text","value":":\nRun the following in your terminal to check for active proxies:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"echo $http_proxy\necho $https_proxy\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Solution"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Temporarily disable proxy"}]},{"type":"text","value":":"},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"unset http_proxy https_proxy ALL_PROXY\n"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Bypass proxy for Code Formula"}]},{"type":"text","value":":\nAdd the following environment variable to your shell configuration (e.g. "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"~/.zshrc"}]},{"type":"text","value":"):"},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"export CF_GITLAB_NO_PROXY=1\n"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"hr","properties":{},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Cause 2: Proxy Client TUN Mode Enabled"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If you are using TUN (virtual network adapter) mode in client software (Clash, Surge, etc.), all system traffic goes through the virtual interface. If the rules are not set correctly, the local domain resolves incorrectly."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Solution"}]},{"type":"text","value":":\nAdd your GitLab domain (e.g., "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gitlab.jamerly.dev"}]},{"type":"text","value":") to the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Bypass / Skip Proxy"}]},{"type":"text","value":" list in your proxy client to force direct connections."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"hr","properties":{},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Cause 3: Untrusted Private CA / Self-Signed Cert"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If your GitLab instance uses a private CA or self-signed certificate, the TLS verifier might block the connection."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Solution"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ol","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Open "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Keychain Access"}]},{"type":"text","value":" on macOS."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Find the target certificate (e.g., "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gitlab.jamerly.dev"}]},{"type":"text","value":")."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Set "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Trust"}]},{"type":"text","value":" to "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Always Trust"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"We recommend importing it into the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"System"}]},{"type":"text","value":" keychain so it is trusted across all user profiles on the machine."}]},{"type":"text","value":"\n"}]}]}