diff --git a/service/rpccommon/server.go b/service/rpccommon/server.go index 24c71ef5..6f5eb025 100644 --- a/service/rpccommon/server.go +++ b/service/rpccommon/server.go @@ -238,7 +238,9 @@ func (s *ServerImpl) serveJSONCodec(conn io.ReadWriteCloser) { } // argv guaranteed to be a pointer now. if err = codec.ReadRequestBody(argv.Interface()); err != nil { - return + s.log.Errorf("can't read request body: %v", err) + s.sendResponse(sending, &req, &rpc.Response{}, nil, codec, fmt.Sprintf("malformed request body: %v", err)) + continue } if argIsValue { argv = argv.Elem()