Executing persisted query, the response is not expected | Community
Skip to main content
New Participant
July 11, 2023

Executing persisted query, the response is not expected

  • July 11, 2023
  • 2 replies
  • 1171 views

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.

2 replies

iamnjain
New Participant
July 18, 2023

Hi @darrendu 

 

Can you please explain a little more?

I didn't got you completely 🙂

darrenduAuthor
New Participant
July 19, 2023

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.

 

EstebanBustamante
New Participant
July 13, 2023

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 

 

Esteban Bustamante
darrenduAuthor
New Participant
July 14, 2023

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.