Expand my Community achievements bar.

Executing persisted query, the response is not expected

Avatar

Level 2

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

Screenshot 2023-07-11 at 10.48.43.png

Step 2:

Run the persist.

Screenshot 2023-07-11 at 10.51.24.png

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:

Screenshot 2023-07-11 at 10.53.27.png

then, i found the store query content auto changed.

Screenshot 2023-07-11 at 10.54.33.png

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
}
}
}
}
}
}
}
}

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Community Advisor

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=... 

 



Esteban Bustamante

Avatar

Level 2

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.

Avatar

Community Advisor

Hi @darrendu 

 

Can you please explain a little more?

I didn't got you completely

Avatar

Level 2

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/g...

 

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.