A line that is not a JSON object with a string method, including an HTTP request line or bytes that are not UTF-8, gets one error reply and the connection closes before anything after it is read.