Users may experience one of the following symptoms:
The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:
com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
In the smart service’s output, an HTTP response code of 413 is returned.
Appian auto-generated email alerts are not sent by the server with the following error in the application server log:
... Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:
An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
The System Has Encountered an Error. HTTP Code: 413The system has encountered an error. Please try again later.
If using Apache, the following error can be observed in the mod_jk.log:
[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value” in the mod_jk log.
The user experiences a HTTP 500 Error when navigating to: */suite/rest/a/applications/latest/app/design/monitoring:
*/suite/rest/a/applications/latest/app/design/monitoring
The following entries are printed to the tomcat-stdOut.log:
com.appiancorp.rest.shared.FallbackExceptionMapper - Internal Server Error on REST API invocation. java.lang.IllegalArgumentException: Header message of length [x] received but the packetSize is only [8,192] at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:636) at org.apache.coyote.ajp.AjpProcessor.receive(AjpProcessor.java:577)
This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.
Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request’s header, message body or the total size of the request as a whole.
To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.
When the size of the request’s body is too large:
For IIS, the maxReceivedMessageSize parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is LimitRequestBody.
maxReceivedMessageSize
LimitRequestBody
When the size of the request’s header is too large:
<system-properties>
<property name="org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE" value="65535"/>
<property name="org.apache.coyote.ajp.MAX_PACKET_SIZE" value="65536"/>
<APPIAN_HOME>/conf
conf.appserver.ajp.maxPacketSize=24576
conf.appserver.maxHeaderSize=65535
Note: Remember to update these configurations in custom.properties.<env> located inside <APPIAN_REPO>/conf/ for future deployments.
<APPIAN_REPO>/conf/
<connector>
<APPIAN_HOME>\tomcat\apache-tomcat\conf
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
<Connector port="9080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>
packetSize
maxHttpHeaderSize
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" packetSize="24576"/>
<Connector port="9080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxHttpHeaderSize="65535"/>
<ISAPI_HOME>\conf
worker.ajp13w1.max_packet_size=24576
worker.ajp13w2.max_packet_size=24576
LimitRequestFieldSize
<APACHE_Home>\conf
LimitRequestFieldSize 65535
2. Restart Apache
If Error Code 413 only occurs for one user please proceed with the following steps:
If the steps above do not resolve the issue and the user is on Internet Explorer, continue with the following steps:
javascript:document.execCommand("ClearAuthenticationCache");
This article applies to all self-managed versions of Appian.
Last Reviewed: September 2024