diff --git a/pkg/querier/queryrange/codec.go b/pkg/querier/queryrange/codec.go index 672203ef01b68..9fb0c6290a781 100644 --- a/pkg/querier/queryrange/codec.go +++ b/pkg/querier/queryrange/codec.go @@ -1608,9 +1608,13 @@ func NewEmptyResponse(r queryrangebase.Request) (queryrangebase.Response, error) }, }, nil case *logproto.IndexStatsRequest: - return &IndexStatsResponse{}, nil + return &IndexStatsResponse{ + Response: &logproto.IndexStatsResponse{}, + }, nil case *logproto.VolumeRequest: - return &VolumeResponse{}, nil + return &VolumeResponse{ + Response: &logproto.VolumeResponse{}, + }, nil default: return nil, fmt.Errorf("unsupported request type %T", req) }