Graphql error: did not yield content fragment | Community
Skip to main content
Level 2
November 11, 2021
Solved

Graphql error: did not yield content fragment

  • November 11, 2021
  • 1 reply
  • 1304 views

Hello,

 

I am using aem cloud sanbox environment.

I am using graphql to fetch content fragment. It is working perfectly on author instance but when I check on publish instance then getting this error in response:

 

{"errors":[{"message":"Exception while fetching data (/ourClientsReferenceByPath) : Path: '%2Fcontent%2Fdam%2Franosys-website%2Four-clients%2Fparent-fragment%2Fclients-homepage' did not yield a Content Fragment","locations":[{"line":2,"column":3}],"path":["ourClientsReferenceByPath"],"extensions":{"classification":"DataFetchingException"}}],"data":null}

 

Please help to provide the solution.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @neelanshb11 

 

Can you confirm if all the configurations are made as per the documentation here:

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-content-fragments.html?lang=en#use-cases-author-publish-environments

 

Thanks!

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
November 12, 2021