Skip to content
MtrXTools

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

The connection dropped during a git transfer

Seen in git clone, fetch and push over HTTPS (curl 18, 56 and 92 variants)

The HTTPS connection carrying the git data was cut off before the transfer finished.

Common causes

  • An unstable network, VPN or Wi-Fi link dropped a long-running transfer.
  • A proxy, firewall or antivirus closed the connection mid-transfer (often on large repositories).
  • An HTTP/2 problem between git and the server or proxy (curl 92).

How to fix it

  1. Retry on a stable connection, or clone over SSH instead of HTTPS.
  2. Clone less data first: git clone --depth 1 <url>, then git fetch --unshallow.
  3. Force HTTP/1.1 if the error mentions HTTP/2: git config --global http.version HTTP/1.1.

Got a different message? Paste it into the error explainer.

Related errors

All 31 Dev tools & SSH errors