Unable to run GraphQL in AEM 6.5.13 | Error - Response.text: Body has already been consumed | Community
Skip to main content
Mario248
Level 7
June 7, 2022

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

  • June 7, 2022
  • 2 replies
  • 1403 views

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

 

GraphQL Endpoint

 

GraphQL query interface

 

CF Model API Name

 

 

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 7, 2022
Mario248
Mario248Author
Level 7
June 7, 2022

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

May 20, 2024

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.