Skip to main content
Level 2
Jul 11, 2023 2:57 AM UTC

Executing persisted query, the response is not expected

AEM Version 6.5.17.0

 

Step 1:

Run the query with graphiql page, can get the correct result.

http://localhost:4502/content/graphiql.html

Step 2:

Run the persist.

I can get the expected results when after the persisted query, but wait a while, will get not expected results when executing persisted query. with no expected results response, the response with following:

then, i found the store query content auto changed.

wrong query:


query IntrospectionQuery {
__schema {

queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
description

locations
args {
...InputValue
}
}
}
}

fragment FullType on __Type {
kind
name
description

fields(includeDeprecated: true) {
name
description
args {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
description
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}

fragment InputValue on __InputValue {
name
description
type { ...TypeRef }
defaultValue


}

fragment TypeRef on __Type {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}
}
}

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

4 replies

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Jul 13, 2023 11:53 PM UTC

Did this start after you upgraded to SP 17?, If so, can you check what is mentioned in the "Known Issues" section from the SP17 release notes? https://experienceleague.adobe.com/docs/experience-manager-65/release-notes/release-notes.html?lang=en#known-issues 

 

Translate
Esteban Bustamante
darrenduAuthor
Level 2
Jul 14, 2023 2:10 AM UTC

before I used SP16 and also have this issue, so try to update to the latest version, but still exist the same issue.

from Known issues and not found this bug.

Translate
iamnjain
Community Advisor
Community Advisor
Jul 18, 2023 11:11 AM UTC

Hi @darrendu 

 

Can you please explain a little more?

I didn't got you completely 🙂

Translate
darrenduAuthor
Level 2
Jul 19, 2023 2:24 PM UTC

when we use the following URL and always can get the response:

http://localhost:4502/content/graphiql.html 

 

in order to have good performance and we will persist the query and use the get method to execute persisted query

https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/graphql/advanced-tutorial/graphql-persisted-queries.html?lang=en

 

now the problem is when we execute the persisted query, sometimes we get the wrong response and find the query is auto-changed. the query will be changed to the above wrong query.

 

Translate