Intermittent SocketTimeoutException with Adobe Commerce APIs in AEM as a Cloud Service

Adobe Experience Manager as a Cloud Service (AEMaaCS) may encounter intermittent SocketTimeoutException errors when Commerce Integration Framework (CIF) calls to Adobe Commerce APIs use Advanced Networking with Dedicated Egress IP. To resolve the issue, verify that the Commerce endpoint is publicly reachable, determine whether Advanced Networking is required, and disable Dedicated Egress IP when it isn’t needed.

Description description

Environment

  • Adobe Experience Manager as a Cloud Service (AEMaaCS) integrated with Adobe Commerce through Commerce Integration Framework (CIF)
  • Advanced Networking enabled
  • Observed with com.adobe.commerce.cif.graphql-client:1.10.5
  • Observed with com.adobe.commerce.cif.core-cif-components-core:2.27.0

Issue/Symptoms

  • Intermittent SocketTimeoutException errors occur when AEM calls Adobe Commerce GraphQL APIs to retrieve product data for UI display.
  • The timeouts occur in production and aren’t consistently reproducible.
  • Requests that time out don’t appear to reach the Commerce application.
  • The issue affects the display of Experience Fragments on the homepage for some clients.
  • Disabling Advanced Networking (Dedicated Egress IP) stops the intermittent timeouts.

Root cause

When Advanced Networking with Dedicated Egress IP is enabled, CIF calls are routed through an additional proxy layer. Misconfiguration or high load on this proxy can introduce latency or dropped connections, resulting in SocketTimeoutException errors. Disabling Advanced Networking removes this additional layer and resolves the intermittent timeouts when the Commerce endpoint is publicly accessible.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Ensure that the Adobe Commerce GraphQL endpoint is publicly reachable over HTTPS on port 443.
  2. Review whether Advanced Networking with Dedicated Egress IP is enabled for the AEM as a Cloud Service environment.
  3. Determine whether Advanced Networking is required. For example, it may be required if the Commerce endpoint isn’t publicly accessible or a fixed source IP is required for allowlisting.
  4. If Advanced Networking isn’t required, remove or disable the Dedicated Egress IP configuration for the AEM environment so that CIF calls use the standard AEM as a Cloud Service egress path.
  5. Monitor the site for recurring SocketTimeoutException errors and confirm that product data loads as expected.
  6. Refer to the official documentation for configuring Advanced Networking in AEM as a Cloud Service for further details.
recommendation-more-help
experience-cloud-kcs-help-kbarticles