macOS · The Network Connection Was Lost

macOS Error Code -1005

The connection was established but then dropped.

warningLast verified 2026-11-08Apple Developer: NSURLErrorDomain
Quick answer

The connection was established but then dropped.

Code-1005
ProductmacOS
Company / originApple · United States
CategoryOperating Systems
Platform / versionsmacOS 12 and later · NSURLErrorDomain
Severitywarning
Official sourceApple Developer: NSURLErrorDomain ↗
Last verified2026-11-08

What does macOS error -1005 mean?

NSURLErrorNetworkConnectionLost (-1005) means the request started but the connection closed before a complete response arrived. It can be caused by Wi-Fi roaming, VPN changes, a proxy reset, or a server crash.

Common causes

  • Wi-Fi or VPN dropped during the request.
  • A proxy or load balancer reset the connection.
  • The server crashed or closed the connection mid-response.

How to fix it

  1. Step 1

    Retry on a stable network and avoid switching Wi-Fi or VPN mid-request.

  2. Step 2

    Check proxy and load balancer logs for resets.

  3. Step 3

    If the error repeats on one URL, test the server with curl from another network.

When to escalate

Before you escalate: If a macOS URL error persists across networks and after restarting the app, capture the code, the URL, the time, and the Console log entries for the app, then contact the app developer or Apple Support with the details.

Related codes

CodeNameWhat it means
-1004Cannot Connect to HostThe host was found, but the connection could not be established.
-1001The Request Timed OutThe request did not complete within the allowed time.
-1003Cannot Find HostThe hostname could not be resolved.
-1006Cannot Find HostThe DNS lookup for the host failed.
-1009The Internet Connection Appears to Be OfflineThe device is not connected to the internet.

Source & verification

This page was checked against Apple Developer: NSURLErrorDomain on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.

Open Error Codes is independent and not affiliated with Apple. Always confirm destructive or security-sensitive steps with the official documentation.