QUERY
query{
seaBrightByPath(_path:"/conf/bright/settings/dam/cfm/models/seabright"){
item {
firstName
lastName
email
}
}
}
Response i got
{
"errors": [
{
"message": "Failed to execute 'text' on 'Response': body stream already read",
"stack": "TypeError: Failed to execute 'text' on 'Response': body stream already read\n at http://localhost:4502/content/graphiql.html:81:33\n at async https://unpkg.com/graphiql/graphiql.min.js:29:224769"
}
]
}
Solved! Go to Solution.
Views
Replies
Total Likes
This is essentially a CSRF issue, as pointed by others. Please check below link :
Please follow similar thread here:
The path you are referring is Content Fragment Model Path, and not the Content Fragment itself. The query you are referring in above code, is looking for a CF Path, please check sample query below and link to the basic queries:
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-ap...
{
cityByPath (_path: "/content/dam/sample-content-fragments/cities/berlin") {
item {
_path
name
country
population
categories
}
}
}
Hi @Anilkumar0208 ,
Please follow below link with similar issue:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/graphiql-editor-error-on-a...
Hope this will help!
Hii @TarunKumar
I tried the way as you mentioned, but its not working. I thought it might not be issue with CSRF filter.
Thank you.
This can be an issue with CSRF filter
Please follow the below thread to get more info on the similar issue.
Hope this is helpful
Hii @Mani_kumar_
I tried the way as you mentioned, but its not working. I thought it might not be issue with CSRF filter.
Thank you.
Please check your field names and paths .
Please ref this URL
https://issues.apache.org/jira/browse/SLING-9847
This may help you
Thanks
This is essentially a CSRF issue, as pointed by others. Please check below link :
Please follow similar thread here:
The path you are referring is Content Fragment Model Path, and not the Content Fragment itself. The query you are referring in above code, is looking for a CF Path, please check sample query below and link to the basic queries:
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-ap...
{
cityByPath (_path: "/content/dam/sample-content-fragments/cities/berlin") {
item {
_path
name
country
population
categories
}
}
}
Views
Likes
Replies
Views
Like
Replies