<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Tor",
  "identifier" : "/documentation/Tor/TorError/invalidResponse(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Tor"
    ],
    "preciseIdentifier" : "s:3Tor0A5ErrorO15invalidResponseyACSScACmF"
  },
  "title" : "TorError.invalidResponse(_:)"
}
-->

# TorError.invalidResponse(_:)

A control-protocol reply or async event could not be parsed.

```
case invalidResponse(String)
```

## Discussion

Raised by [`ControlProtocolParser`](/documentation/Tor/ControlProtocolParser) when a reply line violates
control-spec.txt §2.3 (short line, missing status prefix, unclosed
multi-line). The payload carries the offending line (or a summary)
for debugging. Should be treated as a bug in swift-tor or a Tor
version mismatch — not a user-recoverable error.