MuleSoft · HTTP Connector
HTTP:TIMEOUT
Short answer
HTTP:TIMEOUT means a request sent by the HTTP Request operation timed out before the response arrived. The wait is set by Response Timeout, which is 10000 milliseconds unless you change it, so raise it or make the remote service answer faster.
VerifiedLast verified
01Error text
Error type: HTTP:TIMEOUT02Likely causes
- The request sent by the HTTP requester timed out.
- Response Timeout is the maximum time, in milliseconds, that the request blocks the flow while it waits for the HTTP response. It inherits
defaultResponseTimeout, which is 10000 ms by default. - The remote service took longer than that limit to respond.
03How to fix it
- Find out how long the remote service really takes for this call, and whether that time is acceptable.
- Raise Response Timeout on the HTTP Request operation, or on the HTTP Request configuration so it applies to every request that uses it.
- To change the default for the whole application, set
defaultResponseTimeouton the global<configuration>element, for example<configuration defaultResponseTimeout="30000"/>. - Handle the failure with an error handler of type
HTTP:TIMEOUT, or wrap the call in an Until Successful scope if a retry is safe.
04Official documentation
→Related errors
- HTTP:CONNECTIVITYHTTP:CONNECTIVITY means the HTTP Request operation could not establish a connection to the server. Check the host, port, protocol and TLS settings, and add your own retry because the operation does not use the reconnection strategy for retries.
- Remotely closedA Remotely closed error means the HTTP connector reused a pooled connection that the remote system had already closed. Set Connection Idle Timeout on the HTTP Request configuration lower than the remote system's idle timeout, for example 10000 to 12000 milliseconds.
- VM:QUEUE_TIMEOUTVM:QUEUE_TIMEOUT means a VM Connector operation waited for a queue longer than its Timeout, which is 5 seconds by default. Raise the Timeout, or make the flow that consumes the queue finish sooner.
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