Cannot serve request to /content/graphiql/ in org.apache.sling.servlets.get.DefaultGetServlet | Community
Skip to main content
bpeddapudi
Level 2
July 9, 2021
Solved

Cannot serve request to /content/graphiql/ in org.apache.sling.servlets.get.DefaultGetServlet

  • July 9, 2021
  • 2 replies
  • 3887 views

I want to use GraphQL for a poc. I am reffereing to this documentation.

I don't see GraphQL persistent Queries option in my configuration under Tools > General > Configuration browser nor I see any GraphQL option under Tools > Assets.

I tried installing the GraphiQL interface from this link But now if I am trying to access http://localhost:4502/content/graphiql/ I am getting the below issue.

 I have AEM v6.0 on my local. Is there something else I need to do to use GraphiQL?

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 BrijeshYadav

Hi @bpeddapudi ,
You should have AEM 6.4.2.0 for content fragmentation because GraphQl api works on content fragments.

Also GraphQL currently only available for AEM SDK or AEM as Cloud Service. Some help can be found here 
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...


Here are other useful documentation for further help
Enable the GraphQL interface
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-content-fragments.html?lang=en#enabling-graphql-endpoint

 

Installing the AEM GraphiQL interface
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-content-fragments.html?lang=en#installing-graphiql-interface

/Brijesh

2 replies

Dipti_Chauhan
Community Advisor
Community Advisor
July 9, 2021

Hi @bpeddapudi  

 Are you using AEMaaCS? I think graphiQL interface only works with AEMaaCS.

 

Thanks

Dipti

bpeddapudi
Level 2
July 9, 2021
@2251484_Cauhan is there any way that we can use GraphQL on our local instances?
BrijeshYadav
BrijeshYadavAccepted solution
Level 5
July 9, 2021

Hi @bpeddapudi ,
You should have AEM 6.4.2.0 for content fragmentation because GraphQl api works on content fragments.

Also GraphQL currently only available for AEM SDK or AEM as Cloud Service. Some help can be found here 
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...


Here are other useful documentation for further help
Enable the GraphQL interface
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-content-fragments.html?lang=en#enabling-graphql-endpoint

 

Installing the AEM GraphiQL interface
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/graphql-api-content-fragments.html?lang=en#installing-graphiql-interface

/Brijesh

Dipti_Chauhan
Community Advisor
Community Advisor
July 9, 2021
Hi @brijeshyadav For enabling it says "Navigate to Tools, Assets, then select GraphQL.". But GraphQL is not present in my case. I am using 6.5, Not sure what is missing.