diff --git a/server/rpc_router.go b/server/rpc_router.go index 837137ae..b1eb66ff 100644 --- a/server/rpc_router.go +++ b/server/rpc_router.go @@ -188,7 +188,11 @@ func (s *service) call(ctx context.Context, router *router, sending *sync.Mutex, method: req.msg.Method, endpoint: req.msg.Endpoint, body: req.msg.Body, - rawBody: argv.Interface(), + } + + // only set if not nil + if argv.IsValid() { + r.rawBody = argv.Interface() } if !mtype.stream {