diff --git a/rpcclient/infrastructure.go b/rpcclient/infrastructure.go index fe195cd7..27f7f21f 100644 --- a/rpcclient/infrastructure.go +++ b/rpcclient/infrastructure.go @@ -310,6 +310,8 @@ func (c *Client) handleMessage(msg []byte) { // Attempt to unmarshal the message as either a notification or // response. var in inMessage + in.rawResponse = new(rawResponse) + in.rawNotification = new(rawNotification) err := json.Unmarshal(msg, &in) if err != nil { log.Warnf("Remote server sent invalid message: %v", err)