Error parsing headers: 'limit request headers fields size'

Hi folks,

I receive a lot of data through http headers (jwt token) and it seems a bit too much for Traefik.

I can't find the proper way to increase the size of my http headers. I tried:

---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: headersize
spec:
  buffering:
    maxRequestBodyBytes: 20000000000
    maxResponseBodyBytes: 20000000000
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    traefik.ingress.kubernetes.io/router.middlewares: default-internal-auth@kubernetescrd, default-headersize@kubernetescrd (is it how we use multiple middlewares ?)
[...]

But I still get the same error...

Any help appreciated !

Hello @rguichard,

Thanks for your interest in Traefik!

I don't think that the Buffering middleware will help your use case. It would be used more to limit the size of requests that can be forwarded to services.

Can you provide a reproducible case and the logs of Traefik?

Hi @rtribotte ,

Never mind, we found that our upstream application was the root problem... Sorry for the noise !

Regards,