We are getting below WARN logs, Although it looks like the query executes successfully and returns data
GarphiQL window works fine too with returning the proper response.
On checking the jar code for PersistedQueryServlet.java, it seems this WARN message is displayed may be because of the Query Syntax, since the code looks for pattern "List{items{" to check if a Query is of a List. [ Please refer below image], whereas my GraphiQL query has the pattern:
"generalMessageList(filter: {code: {_expressions: [{value: $code}]}},_locale:$locale) {
__typename
items {
__typename....
"
i.e "List(filter"
Can you please share what , if any, corrections should be made for the Query syntax ?
boolean isQueryList(String query) {
return StringUtils.deleteWhitespace(query).contains("List{items{");
}
*WARN* GET /graphql/execute.json/<endpoint_name>/Message;code=still_want_to_signup;locale=en; HTTP/1.1] com.adobe.aem.graphql.impl.servlet.PersistedQueryServlet Cannot recognize GraphQL query type: {
"data": {
"generalMessageList": {
"__typename": "GeneralMessageModelResults",
"items": [
{
"__typename": "GeneralMessageModel",
"_path": "/content/dam/abc/web/en/messages/general/still_want_to_signup",
"code": "still_want_to_signup",
"message": {
"__typename": "MultiFormatString",
"html": "<p>Do you still want to sign up?</p>\n",
"markdown": "Do you still want to sign up ?\n\n ",
"plaintext": "Do you still want to sign up?",
"json": [
{
"nodeType": "paragraph",
"content": [
{
"nodeType": "text",
"value": "Do you still want to sign up?"
}
]
}
]
},
"htmlDecorator": null
}
]
}
}
}
トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。
表示
返信
いいね!の合計
Hello @iamnjain
The two "if" statements have a single "return" statements. So in case any one of the if condition is true, it will return without executing the logger "warn" message.
表示
返信
いいね!の合計
I would recommend logging this as a bug as your query syntax looks perfectly valid.
I can't reproduce the error with similar queries. Are you on cloud service on the latest release?
Hello @martin_ecx_io
Yes, we are on cloud service. Can you please share which latest release version are you referring to? Will cross check it with what we have in our case
表示
返信
いいね!の合計
The cloud service instance i tested on is running version 2025.1.19352.20250131T194709Z
you can check the version in Cloud Manager for each environment
On my sandbox env it shows the following as the latest version available currently:
Did you end up raising an Adobe ticket for this? Any resolutions?
表示
返信
いいね!の合計
@SCBM Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!
表示
返信
いいね!の合計