diff --git a/protocol/json/client_response.go b/protocol/json/client_response.go index 1f1843e..39db892 100644 --- a/protocol/json/client_response.go +++ b/protocol/json/client_response.go @@ -21,7 +21,7 @@ func newClientCodecResponse(raw json.RawMessage) (protocol.ClientCodecResponse, releaseClientCodecResponse(ccr) return nil, err } - if nil == ccr.response.ID { + if nil == ccr.response.Result && nil == ccr.response.Error { releaseClientCodecResponse(ccr) return nil, fmt.Errorf("This is not Response") }