Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

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

Avatar

Level 7

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 ?

3 Replies

Avatar

Level 7

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

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now