Skip to Content
avatar image
Former Member

HTTP 413 Request Entity Too Large

Hi All,

When we are trying to connect to a target system using SOAP(HTTPS) adapter, we are getting the error as attached. We checked with the target system and they can handle upto 15 MB message size. The error we are encountering is for any thing just above 45-50kb. Please provide your inputs on resolving this issue.

Regards,

Vishal

Error.JPG (86.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 19, 2014 at 09:49 AM

    Hi Vishal,

    What is the PI version you are using?

    Please check Note # 657759 - "413 Request Entity Too Large" on J2EE Engine if it helps.

    Solution

    1.Procedure for 6.20 J2EE Engine
    The maximum accepted request headers length is customizable. It can be adjusted by the MaxRequestHeadersLength property of http service on dispatcher (if using cluster version), or on the alone node (if using the standalone version). You can change this property to a larger value, or set it to a negative value. The negative value means that no restrictions will be imposed on the request headers length. Setting the above mentioned negative value for MaxRequestHeadersLength is possible for service pack 14 and later of the j2ee engine. If the version you are using is lower, you have to increase the value of the property. Sufficient in this case might be to double the default.
    2.Procedure for 6.30/6.40 J2EE Engine
    In J2EE Engine 6.30/6.40 the maximum request headers and body length is customizable.
    The maximum request length can be adjusted by the property MaxRequestHeadersLength of the Http Provider service on the dispatcher node. You can change this property to a larger value, or set it to a negative value. The negative value means that no restrictions will be imposed on the request headers length.
    The maximum body length can be adjusted by changing the value of the property MaxRequestContentLength in the HttpProvider service on the dispatcher node. Again you can increase the value of the property of set it to a negative value, which means that no restrictions are imposed

    Refer:

    First try to adjust <MaxRequestContentLength> and then Test. If not resolved, then go for <MaxRequestHeadersLength>.

    Regards,

    Azhar

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 23, 2014 at 08:57 AM

    Hi Vishal,

    My cents: Try to isolate the problem and check if https is working fine with others endpoints.

    If yes: I guess the problem should be at endpoint site.

    If no: try to reconfigure SAP PI https connection.

    good luck,

    Roberto.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Roberto,

      Thanks for the suggestion. But we have only one system with which we have HTTPS connectivity established. If we have to go for HTTPS with new systems then it is a very lengthy process.

      Regards,

      Vishal