AEM Edge Functions: Resolving HTTP 503 error during edge worker deployment

Adobe Experience Manager (AEM) Edge Functions deployment may fail with HTTP 503 when the edge function configuration doesn’t use the main domain associated with the environment. To resolve the issue, configure the correct main domain, redeploy the edge worker, and collect debug output if the error persists.

Description description

Environment

Adobe Experience Manager (AEM) Edge Functions (all versions)

Issue/Symptoms

  • Deploying an edge worker with the following command fails: aio aem edge-functions deploy <function_name>
  • The following error appears: Failed to deploy HTTP 503
  • The issue is reproducible with the same deployment command.
  • The issue occurs regardless of the function being deployed.

Root cause

The HTTP 503 error occurs because of incorrect domain configuration. Edge Functions deployments require the main domain associated with the environment.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Verify that the domain in the edge function configuration is the main domain associated with the environment.
  2. Avoid using subdomains or incorrect domain entries because they can cause deployment failures.
  3. After updating the domain configuration, run the deployment command again: aio aem edge-functions deploy
  4. Confirm that the deployment completes without HTTP 503 errors.
  5. If the error persists, run the following command to collect detailed debug output: aio aem edge-functions info --debug
  6. Review the debug output for additional error details or provide it to Adobe Support after redacting any sensitive credentials.
recommendation-more-help
experience-cloud-kcs-help-kbarticles