Cannot print fragment's Json. Reason: Cannot obtain GraphQL endpoint | Community
Skip to main content
March 21, 2022

Cannot print fragment's Json. Reason: Cannot obtain GraphQL endpoint

  • March 21, 2022
  • 2 replies
  • 2458 views

hello,

I have created a content fragment model and when i click the json view i am getting this error.

AEM version 6.5.12 nosample-content

while inspecting console errors are

Same model is working in my local only difference I observe is my local is having sample content but above is not

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

2 replies

Nitin_laad
Community Advisor
Community Advisor
March 21, 2022

@amit_kumart9551 tried to reproduce the issue in my local 6.5.12 and AEMaaCS, able to generate JSON with no issues. 

Try to enable graphQL endpoint as per below link and see if you can resolve your issue - 

AEM GraphQL API for use with Content Fragments | Adobe Experience Manager

 

March 22, 2022

Thanks , my local is also working i am facing issue in production mode no sample content. I will check the article and try again.

After adding endpoint now getting "Cannot print fragment's Json. Reason: Cannot generate GraphQL query"

Ravi_Joshi
Level 4
April 26, 2022

Hi @amit_kumart9551 ,

 

Try enabling a site-specific graphql endpoint configuration by using the below reference.

https://github.com/AdobeDocs/experience-manager-cloud-service.en/blob/main/help/headless/graphql-api/graphql-endpoint.md 

 

Thanks,

Ravi