Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Unable to run GraphQL in AEM 6.5.13 | Error - Response.text: Body has already been consumed

Avatar

Level 9

I could not run any graphql in aem 6.5 instance. I get error Response.text: Body has already been consumed when I run a query.

Ensured below configuration is in place,

CSRF Config

Mario248_0-1654582851035.png

 

GraphQL Endpoint

Mario248_1-1654582925671.png

 

GraphQL query interface

Mario248_2-1654582971254.png

 

CF Model API Name

Mario248_3-1654583062140.png

 

 

Error log :-

==> request.log <==
07/Jun/2022:11:53:07 +0530 [1352] -> POST /content/_cq_graphql/global/endpoint.json HTTP/1.1

==> error.log <==
07.06.2022 11:53:07.326 *INFO* [127.0.0.1 [1654582987313] POST /content/_cq_graphql/global/endpoint.json HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter isValidRequest: empty CSRF token - rejecting
07.06.2022 11:53:07.326 *INFO* [127.0.0.1 [1654582987313] POST /content/_cq_graphql/global/endpoint.json HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter doFilter: the provided CSRF token is invalid

==> request.log <==
07/Jun/2022:11:53:07 +0530 [1352] <- 403 text/html 19ms

==> access.log <==
127.0.0.1 - admin 07/Jun/2022:11:53:07 +0530 "POST /content/_cq_graphql/global/endpoint.json HTTP/1.1" 403 433 "http://localhost:4502/content/graphiql.html?sd" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0"

 

I tried to restart my instance too Can anyone tell me how to debug this issue further ?

4 Replies

Avatar

Level 9

This thread is dealing accessing servlet via dispatcher. For me it is struck at author instance itself.

Avatar

Level 1

Hi @Mario248 

Were you able to find a solution to this.

I am facing the same issue and if this worked for you on author. We are using same 6.5.13 version.