Servlet Calls 204 error in AEM 6.5 | Community
Skip to main content
Level 3
February 19, 2021

Servlet Calls 204 error in AEM 6.5

  • February 19, 2021
  • 5 replies
  • 13203 views

Hi All,

After upgrading to aem 6.5.6(inplace from 6.4.8.1.to 6.5.6) i am facing with POST and DELETE calls are going to 204 instead of 302 or 200.

 

Please let me know if any came across this issue.

 

Thanks

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

5 replies

Adobe Employee
February 19, 2021
Can you please add more details to this? Which POST requests exactly? What servlets are you hitting? What's going in the error.log?
Level 3
February 19, 2021

https://castrolfastlane-supporttest-www.castrol.com/bin/downstream/fastlane/cart?productCode=3374721&quantity=5

 

When am trying to hit with the above url am able to see the data.

 

Whem am accessing through application after upgrade am facing this 204 issues am not able see any errors related to this servlet.

 

Level 3
February 22, 2021
[Mon Feb 22 12:37:17 2021] [D] [pid 18889 (tid 140177355810560)] cache-action for [/content/dam/downstream/commons/images/castrolLogo.png]: DELIVER [Mon Feb 22 12:37:17 2021] [D] [pid 18895 (tid 140177246705408)] cache-action for [/content/dam/downstream/commons/images/castrolLogo.png]: DELIVER [Mon Feb 22 12:37:17 2021] [D] [pid 18889 (tid 140177355810560)] request declined [Mon Feb 22 12:37:17 2021] [D] [pid 18895 (tid 140177246705408)] request declined [Mon Feb 22 12:37:17 2021] [D] [pid 18889 (tid 140177355810560)] response.headers[Last-Modified] = "Thu, 09 Apr 2020 12:22:05 GMT" [Mon Feb 22 12:37:17 2021] [D] [pid 18895 (tid 140177246705408)] response.headers[Last-Modified] = "Thu, 09 Apr 2020 12:22:05 GMT" [Mon Feb 22 12:37:17 2021] [I] [pid 18889 (tid 140177355810560)] "GET /content/dam/downstream/commons/images/castrolLogo.png" - - 0ms [flush-website/-] [Mon Feb 22 12:37:17 2021] [I] [pid 18895 (tid 140177246705408)] "GET /content/dam/downstream/commons/images/castrolLogo.png" - - 0ms [flush-website/-] [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Found farm fastlane for castrolfastlane-supporttest-www.castrol.com [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] checking [/bin/downstream/fastlane/cart] [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] request URL has no extension: /bin/downstream/fastlane/cart [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] cache-action for [/bin/downstream/fastlane/cart]: NONE [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Creating new socket: 10.0.101.32:4503 [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Connected to backend i-02d1642aa48fc749e (10.0.101.32:4503) [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: CSRF-Token [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: referer [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: user-agent [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: content-type [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: content-length [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: accept-encoding [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: accept-language [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: accept [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: host [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: cookie [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: X-Forwarded-SSL [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: X-Forwarded-Port [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: X-Forwarded-Proto [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: Origin [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: Via [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: X-Forwarded-For [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Adding request header: Server-Agent [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Sending request body to remote server [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] Request body sent to remote server [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] response.status = 204 [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] response.headers[Date] = "Mon, 22 Feb 2021 12:37:24 GMT" [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] response.headers[Cache-Control] = "no-cache" [Mon Feb 22 12:37:24 2021] [D] [pid 18900 (tid 140177297061632)] No socket reuse: neither GET nor HEAD [Mon Feb 22 12:37:24 2021] [I] [pid 18900 (tid 140177297061632)] "POST /bin/downstream/fastlane/cart?productCode=3366128&quantity=3" 204 - 1ms [------------------------This is what i am seeing in dispatcher log
Adobe Employee
February 19, 2021

Deleted response. See response in comment below.

Uppari_Ramesh
Level 5
December 4, 2023

Hi @santhoshm687661 ,

 

Basically 204 response from your servlet indicates that you are missing your api endpoint in CORS policy Allowed paths section. Just add your servlet endpoint in Allowed paths section.

 

Thanks,

Ramesh