I am using a requestor connector in mule 4 for calling an API. That API takes 24 minutes to send back the response to requestor. So when I am running my application in cloudhub, I am getting HTTP:GATEWAY_TIMED_OUT , error_code: 504 .
The response timeout I am setting in the requestor is 24 minutes and connection idle timeout is set to default(30000ms)
How can we update the response timeout of cloudhub?
I understand that you are making an HTTP request to a REST API implemented as an application deployed in CloudHub. You probably are using an URL that goes through CloudHub load balancer (example https://myapp.us-e1.cloudhub.io/api/...
). The load balancer has a fixed 5 minutes that can not be changed . Note that 24 minutes is a lot of time to keep connections resources open.
Some alternatives could:
https://mule-worker-myapp.us-e1.cloudhub.io:8082/api/...
). Be aware that going this way you will lose the benefits of using a load balancer.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.