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.

Publishers giving 500 error instead of 404

Avatar

Level 3

Hi,

We have 6 publishers for our website when we are trying to access a non existing page it is throwing 500 error in 3 publishers and 404 error in 3 publishers. The configuration is same for all the publishers and the error pages are available in the publishers.

ErrorPageHandlerImpl is available.

In the error logs we are getting Sling Uncaught throwable error 

Can someone suggest what could be the issue?

2 Replies

Avatar

Community Advisor

Hi,

 

Are you hitting the publishers directly (without the dispatcher in front of them)? This could be a cache issue if you're using a CDN or dispatcher. Another possibility is that some content is missing in the publishers where the 500 error is appearing, which could be causing the issue instead of a 404. Could you share more details about what you are seeing in the logs?

 



Esteban Bustamante

Avatar

Level 2

hi @nivethaS 

 

Without more context from you, I can think of two possibilities:

- Either you previously had the page and you removed it. In this case you will need to re-check to see if the page might still exist, either in cash or in AEM per se, for those 3 publishers that return 500 ? It sounds like that the page still exist but the code behind them fails, making the server to crash.
- Or, the page never existed, in which case some extra logs or details from you might help, cause' is hard to guess what might be happening.