MuleSoft · HTTP Connector

HTTP:INTERNAL_SERVER_ERROR

Short answer

HTTP:INTERNAL_SERVER_ERROR means the server hit a situation that prevented it from fulfilling the request the HTTP Request operation sent (HTTP 500). Read the response body and the remote system's logs to find what failed there.

VerifiedLast verified

01Error text

MuleSoft error
Error type: HTTP:INTERNAL_SERVER_ERROR

02Likely causes

  • The server encountered a situation that prevented it from fulfilling the request.
  • HTTP Connector treats any status code from 500 through 599 as a failure and raises an error.

03How to fix it

  1. Turn on HTTP wire logging to see the exact request and response: in log4j2.xml, enable the logger org.mule.service.http.impl.service.HttpMessageLogger at DEBUG level. Read the response body, which may carry the remote system's own error detail.
  2. Check the logs of the remote system for the same time. The failure happened there.
  3. Confirm that the request body and parameters are what that system expects. Some servers answer 500 to input they cannot process.
  4. Handle the failure with an error handler of type HTTP:INTERNAL_SERVER_ERROR.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.