GraphQL persisted queries don’t load in AEM Author instance

This article explains how to resolve an issue where GraphQL persisted queries fail to load in the Adobe Experience Manager (AEM) Author instance, while they work as expected in the Publisher instance.

Description description

Environment

  • AEM 6.5 LTS Managed Services Author and Publisher environments
  • Author environment with a Dispatcher in front of Author
  • GraphQL editor for Content Fragment endpoints

Issue/Symptoms

  • When you open the GraphQL editor in Author and select an endpoint, the persisted-query list doesn’t load.
  • The GraphQL editor and persisted queries load correctly in Publisher.
  • The GraphQL editor’s endpoint configuration response is empty when served from the affected Author Dispatcher.

Steps to reproduce

  1. Open the GraphQL editor in the AEM Author environment.
  2. Select the required endpoint.
  3. Observe that the persisted queries are missing or not displayed.

Cause

Stale or invalid cache entries in the Author Dispatcher cause the GraphQL editor’s endpoint configuration response to be empty. The editor doesn’t receive the endpoint list and therefore doesn’t display the persisted queries.

Resolution resolution

Follow the steps below to resolve the issue.

  1. Clear the Dispatcher cache for the affected Author environment. This can be done by:

    • Accessing the Dispatcher server associated with your Author instance.

    • Clearing the cache for the relevant paths related to GraphQL, or performing a full cache flush if you are unsure of the specific paths.

  2. If you do not have direct access to the Dispatcher server, contact your system administrator or the team responsible for managing Dispatcher to perform the cache clearing.

  3. After the cache is cleared, open the GraphQL editor in the Author environment.

  4. Verify that the persisted queries are now loading as expected.

recommendation-more-help
experience-cloud-kcs-help-kbarticles