Omniscio

OmniscioGuidesAPI error EPROTO

API Error: Unable to connect to API (EPROTO)

Last checked against Anthropic's documentation and its issue tracker on November 21, 2026. By the Omniscio team. Updated .

What is the exact message?

API Error: Unable to connect to API (EPROTO)

Anthropic's changelog records the same failure with more of it spelled out: API Error: EPROTO: The TLS handshake failed. Either way the code is the same and so is the meaning — the TLS exchange failed.

What does it mean?

Claude Code could not establish the secure connection it needs before it can send a request. Anthropic's error reference groups these as connection failures: the message names the kind of failure and keeps the code in parentheses, and a code the reference does not list by name appears in that same shape.

What it is not: a problem with your prompt, your repository, your login or your plan. Nothing in the reference ties a TLS failure to any of those.

What causes it

  • A TLS-inspecting proxy or security appliance. Anthropic documents this as the cause of its certificate errors: something on the network is intercepting TLS with a certificate Claude Code does not trust. That guidance is where to start when a proxy sits in the path.
  • A network that blocks or mangles the connection. The reference lists no internet access, a VPN that blocks api.anthropic.com, and a required corporate proxy that is not configured.
  • One particular path to the API. Issue 108729 reports EPROTO and a TLSV1_ALERT_DECODE_ERROR on one ISP while curl and other Claude Code requests succeeded on the same machine. Issue 106884 reports frequent connection drops with EPROTO, and issue 105324 is a bare EPROTO report. These are reporters' findings, not Anthropic's account of a cause.

Where the cause is not one Anthropic documents — an ISP-specific TLS failure, for instance — this page does not invent one. The reports show it happening; they do not explain it.

What do I do?

  1. Try a different network. A phone hotspot or another connection settles in one attempt whether the problem is the network. If the API answers there, fix the network rather than the install.
  2. If you are behind a corporate proxy, point Claude Code at your organisation's CA. Export the CA bundle and set NODE_EXTRA_CA_CERTS=/path/to/ca-bundle.pem, or add the CA to the system certificate store. Anthropic documents both in its certificate guidance, and its proxy guide covers the rest of the configuration.
  3. Check that a required proxy is configured at all. The reference lists a required corporate proxy that is not set as a cause of connection failures. Anthropic documents https_proxy, HTTPS_PROXY, http_proxy and HTTP_PROXY, with the first one set winning.
  4. Run claude doctor. Anthropic's own certificate message tells you to run it for details when the failure happens during sign-in or the startup check.
  5. Update Claude Code. Run claude update. Anthropic's changelog records a fix for one EPROTO case — a turn ending with this error when the connection broke partway through a reply — so a newer build is worth having, even though no source promises that updating clears every handshake failure.
  6. Do not disable certificate validation. Anthropic says explicitly not to set NODE_TLS_REJECT_UNAUTHORIZED=0. It would make this failure disappear and every other certificate failure with it.

How do I know it is fixed?

  • A message reaches the model and a reply comes back, on the connection you fixed.
  • The error does not return on that network across several turns. A single success can be a retry landing on a good path; a run of them is the fix.
  • claude doctor no longer reports a certificate or connectivity problem.

Where these answers come from

  • That connection failures name the kind of failure and keep the code in parentheses, that an unrecognised code appears in the same shape, and the documented causes of no internet, a blocking VPN and an unconfigured corporate proxy: Anthropic's error reference, read November 21, 2026.
  • A TLS-inspecting proxy as the cause, NODE_EXTRA_CA_CERTS, the system certificate store, claude doctor, and the instruction never to set NODE_TLS_REJECT_UNAUTHORIZED=0: the certificate errors section, read November 21, 2026.
  • The proxy variables and their precedence: Anthropic's network configuration page, read November 21, 2026.
  • The fuller wording API Error: EPROTO: The TLS handshake failed, as a changelog fix entry: Anthropic's Claude Code changelog, read November 21, 2026.
  • The ISP-specific and repeated-drop reports: issue 108729, issue 106884 and issue 105324, read November 21, 2026.

Common questions

What does EPROTO mean?

It is a TLS protocol error: the secure connection to the API did not complete as a valid TLS exchange. Anthropic's error reference covers codes it recognises by name and says a code it does not recognise appears as Unable to connect to API followed by the code in parentheses, which is the shape of the EPROTO message.

Is it my code or my network?

Anthropic's error reference treats connection failures as network problems first: no internet access, a VPN that blocks api.anthropic.com, or a required corporate proxy that is not configured. A TLS-inspecting proxy is the other documented cause, under its own certificate errors. Nothing in the reference describes an EPROTO caused by your prompts or repository.

Why does it say "unable to connect" instead of naming a certificate?

Because EPROTO is not one of the codes Anthropic's reference names by hand. It documents that a code Claude Code does not recognise appears as Unable to connect to API followed by the code in parentheses, which is exactly the message you have. The certificate guidance is still where the proxy case is handled.

Will switching network help?

It is the fastest way to find out. Anthropic's certificate guidance is aimed at proxies and TLS-inspecting appliances; if the failure only happens on one network, the network is the variable. Trying a mobile hotspot or another connection tells you which side to fix before you change anything in your configuration.

Should I turn off certificate checks?

No. Anthropic says explicitly not to set NODE_TLS_REJECT_UNAUTHORIZED=0, which disables certificate validation entirely. The documented route for a certificate your machine does not trust is NODE_EXTRA_CA_CERTS pointing at your organisation's CA bundle, or adding it to the system certificate store.

Does it cost me anything when it fails?

It depends where the connection broke. Anthropic's changelog records this same error when the connection broke partway through a reply, and says the partial reply is kept or the request is retried. It also documents that a certificate validation failure is not retried at all on current versions, while transient TLS conditions such as a handshake timeout still retry.