Giter Club home page Giter Club logo

Comments (3)

nmengin avatar nmengin commented on May 23, 2024

Hey @AliaksandrZhloba,

Thanks for reaching out.

Could you provide a minimal reproducible case (for instance, full Kubernetes manifest to reproduce the issue)?

In the meantime, if any community member can help us find verified steps to reproduce and fix the issue if possible, we would love the help.

from traefik.

AliaksandrZhloba avatar AliaksandrZhloba commented on May 23, 2024

Hello @nmengin ,

docker-compose.yml:

services:
  reverse-proxy:
    image: traefik:v2.11.2
    command: --api.insecure=true --providers.docker --entryPoints.web.address=:80 --entryPoints.websecure.address=:443
    ports:
      - "80:80"
      - "8080:8080"
      - "443:443"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

  backend:
    image: ealen/echo-server
    labels:
      - traefik.http.routers.backend.rule=Host(`echo.docker.localhost`) || PathPrefix(`/echo`)
      - traefik.http.routers.backend.entrypoints=web
      - traefik.http.services.backend.loadbalancer.server.port=80
      - traefik.http.routers.backend.middlewares=limit@docker
      - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=20000

POST echo.docker.localhost with any large body.

Tried web and websecure entrypoints - the result is the same.
Tried v2.11.2 and v3.0.0 - similar (although v3.0.0 sometimes writes ERR write: total size of 32768 exceeded allowed 20000 entryPointName=web middlewareName=limit@docker middlewareType=Buffer routerName=backend@docker to log).
When maxResponseBodyBytes=2000 - the response is 500 Internal Server Error
When maxResponseBodyBytes=20000 - the response is 200, by the body is not only trimmed but sometimes contains some trash.

from traefik.

nmengin avatar nmengin commented on May 23, 2024

Hey @AliaksandrZhloba,

Thanks for the additional information.
If any community member can help us to move forward on it, we would love the help.

from traefik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.