IBM Cloud Docs
Why does my app connection fail when using a proxy?

Why does my app connection fail when using a proxy?

Your application connects to another service with a proxy such as IBM Cloud Internet Services (CIS), which is based on CloudFlare. When your app runs, you notice that the connection ends unexpectedly, and you receive an ERROR_CONNECTION_CLOSED message.

If you use Cloud Internet Services (CIS) or Cloudflare as a proxy for your Code Engine application, after 100 seconds, if Cloudflare does not detect an HTTP response, the connection is closed and a 524 error is given by the proxy.

To resolve this situation, make sure that your code responds to the proxy within 100 seconds, or increase the timeout value.

For more information about addressing timeout errors in Cloud Internet Services (CIS), see Troubleshooting 500 class errors.

For more information about the Cloudflare timeout error, see Timeout error 524 for Cloudflare.

For more information about troubleshooting other app connection failures, see Why does my app connection fail?