Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

413 Request Entity too Large for large file uploads #325

Open
saichand1996 opened this issue Mar 29, 2023 · 0 comments
Open

413 Request Entity too Large for large file uploads #325

saichand1996 opened this issue Mar 29, 2023 · 0 comments

Comments

@saichand1996
Copy link

hello,

I'm using webapp runner with docker for hosting a web application , for files less than 1mb, the upload of files are successful but when file size exceeds 1MB, server is throwing 413 request entity too large HTTP status, We are using mvn dependency of web app runner in to our applications pom file,
here is the docker file of our hosted app :

Docker multi-stage build

1. Building the App with Maven

FROM maven:3-jdk-11

ADD . /reportserver
WORKDIR /reportserver

Just echo so we can see, if everything is there :)

RUN ls -l

Run Maven build

RUN mvn clean install

2. Just using the build artifact and then removing the build-container

FROM openjdk:11-jdk

VOLUME /tmp

Add app.war to Container

COPY --from=0 "/reportserver/target/*.war" reportserver.war
COPY --from=0 "/reportserver/target/dependency/webapp-runner.jar" webapp-runner.jar

CMD java $JAVA_OPTIONS -jar webapp-runner.jar --port $PORT reportserver.war

can you please help us to configure the web app runner with respect to https://stackoverflow.com/questions/51390755/413-request-entity-too-large-apache-tomcat this tomcat thread for tomcat's 413 error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant