heroku / heroku/webapp-runner

413 Request Entity too Large for large file uploads

Open
#325 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
323
Forks
111
Avg merge
8h 41m
Merged PRs (30d)
17

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.