Expand my Community achievements bar.

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

Avatar

Level 1

hello,

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

AEM version 6.5.12 nosample-content

while inspecting console errors are

c1.PNG

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

3 Replies

Avatar

Community Advisor

@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

 

Avatar

Level 1

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"