Hermes Proxy Network Timeout Fix | Generated by AI

Home 2026.04

Question: Why did I get this TypeError: terminated with ETIMEDOUT when running start_proxy in hermes-agent on Node.js v25.3.0?

Answer:

This error is a network timeout issue that occurred inside Node.js’s HTTP/HTTPS client (using the undici library) while your hermes-agent was trying to make an outgoing request.

What happened:

Common reasons for this in hermes-agent start_proxy:

  1. Network connectivity problems — Your internet connection dropped momentarily, or there’s high latency/packet loss.
  2. Proxy or firewall interference — Since you’re running start_proxy, hermes-agent is probably trying to connect through a proxy, to a proxy, or to some remote service. Firewalls, corporate proxies, or VPNs often cause timeouts.
  3. Target server is slow or unreachable — The remote endpoint hermes-agent is contacting (for example, a configuration server, authentication service, or upstream proxy) is not responding quickly enough.
  4. DNS resolution or routing issues — Especially common on macOS when switching networks or using certain Wi-Fi setups.
  5. Timeout settings too low — hermes-agent or Node.js might have a short default timeout for requests.
  6. macOS-specific networking quirks — The errno -60 and the TLS socket close point to a system-level socket timeout, which happens more frequently on macOS with certain network configurations.

How to fix it:

If the error keeps happening, share:

That will help narrow it down further.

References:


Back Donate