Servlet Calls 204 error in AEM 6.5

Avatar

Avatar

santhoshm687661

Avatar

santhoshm687661

santhoshm687661

19-02-2021

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

Replies

Avatar

Avatar

davidjgonzalezzzz

Avatar

davidjgonzalezzzz

davidjgonzalezzzz

19-02-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?

Avatar

Avatar

santhoshm687661

Avatar

santhoshm687661

santhoshm687661

19-02-2021

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

 

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.

 

Avatar

Avatar

davidjgonzalezzzz

Avatar

davidjgonzalezzzz

davidjgonzalezzzz

19-02-2021

Deleted response. See response in comment below.

Avatar

Avatar

davidjgonzalezzzz

Avatar

davidjgonzalezzzz

davidjgonzalezzzz

19-02-2021

I think youll need to investigate more. Does this happen on your local dev? Does this happen if you hit your custom servlet directly on AEM (vs. going through dispatcher)? What is the Request Progress log for this request (available in OSGi console)? Does your custom servlet have any code that could return a 204 response?

Avatar

Avatar

santhoshm687661

Avatar

santhoshm687661

santhoshm687661

21-02-2021

Thank you for ur comments.

Avatar

Avatar

santhoshm687661

Avatar

santhoshm687661

santhoshm687661

21-02-2021

Thank you for ur comments.But i have used the same code in vanila upgrade it worked successfully fo rinplace am seeing this issue and am able to see the json DATA is the akamail url i am hopiung there is an problem with aem.

Avatar

Avatar

bmccurdy1

Avatar

bmccurdy1

bmccurdy1

22-02-2021

Can you expand a bit more when you say 'accessing through the application'? Is there a 3rd party or external system that is trying to access and consume data from AEM? HTTP 204 response = 'no content', which is what I would expect to get back from a successful preflight request from an outside application. Just curious if this is a possible CORS issue.

Avatar

Avatar

santhoshm687661

Avatar

santhoshm687661

santhoshm687661

22-02-2021

castrolfastlane-supporttest-www.castrol.com