Skip to main content
Level 5
Nov 2, 2022 7:11 PM UTC
Solved

AEM GraphQL Error

Hi Team,

AEM : 6.5.13

All our GraphQL related query works fine in AUTHOR where as in Publish, we are getting this error:

 

"exception": "javax.script.ScriptException",
"cause": "com.adobe.cq.dam.cfm.graphql.ModelManagerException: Could not create resource resolver",
"stacktrace": [
"com.adobe.cq.dam.cfm.graphql.ModelManagerImpl.createResolver(ModelManagerImpl.java:102)",
"com.adobe.cq.dam.cfm.graphql.ModelManagerImpl.getLastUpdate(ModelManagerImpl.java:243)",
"com.adobe.cq.dam.cfm.graphql.ContentFragmentPlugin.lambda$addSchemaFragment$3(ContentFragmentPlugin.java:282)",
"com.adobe.aem.graphql.sites.base.SchemaImpl.isValid(SchemaImpl.java:145)",
"com.adobe.aem.graphql.sites.base.GraphQLServiceImpl.getOrCreateEntry(GraphQLServiceImpl.java:145)",
"com.adobe.aem.graphql.sites.base.GraphQLServiceImpl.getSchemaSDLWithCache(GraphQLServiceImpl.java:175)",
"com.adobe.aem.graphql.sites.base.GraphQLServiceImpl.getSchemaSDL(GraphQLServiceImpl.java:191)",
"com.adobe.aem.graphql.sites.adapters.slin

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SantoshSai
SantoshSaiAccepted solution
Community Advisor
Nov 2, 2022 7:43 PM UTC

Hi @arvind-1,

I believe it's working on author seems you have logged in as a admin user, have you tried by logging in as admin on publisher? I suspect, it doesn't have proper read/write access to anonymous user.

Regards,

Santosh

Santosh Sai

3 replies

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
Nov 2, 2022 7:43 PM UTC

Hi @arvind-1,

I believe it's working on author seems you have logged in as a admin user, have you tried by logging in as admin on publisher? I suspect, it doesn't have proper read/write access to anonymous user.

Regards,

Santosh

Translate
Santosh Sai
Mani_kumar_
Community Advisor
Community Advisor
Nov 2, 2022 8:56 PM UTC

Hi @arvind-1 ,

This seems to be an issue to access permissions, check the permissions with which the publish is logged and give proper access or try to run the graphQL query.

Hope this is helpful.

Translate
bruno-bradach
Level 2
Oct 25, 2023 4:35 PM UTC

Hi @arvind-1. I'm facing the same issue, were you able to fix it?

 

Thanks!

Translate