Mirroring does not work for gRPC requests

Hi,

Mirroring does not work for gRPC requests.
Traefik v2.10

IngressRoute:

apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
  name: ingressroutebar
  namespace: default
spec:
  entryPoints:
    - web
  routes:
  - kind: Rule
    match: Host(`example.com`) && PathPrefix(`/foo`)
    services:
    - kind: TraefikService
      name: svc-mirror
      namespace: default

TraefikService:

apiVersion: traefik.io/v1alpha1
kind: TraefikService
metadata:
  name: svc-mirror
  namespace: default
spec:
  mirroring:
    name: svc1
    port: 9000
    scheme: h2c
    mirrors:
      - name: svc2
        port: 9000
        percent: 100
        scheme: h2c

With scheme set to h2c, no requests are mirrored to svc2. But the same configuration works when scheme is not set and backend is http1.

Anything wrong with the configuration?

First I recommend to try with the latest version. Traefik v2.10 is from Apr 24, 2023.

The issue was not resolved even with latest v2 version i.e. v2.11. The mirroring changes are supported for v2 version. Works fine for http1 protocol but fails for http2

Maybe try v3, which was first released a year ago.

Upgraded Traefik to v3.4.0 but seeing the same issue