I would argue that no matter when and how often it happens stack trace is only useful for the site admin, who can see the trace in the log anyway, for the thousands of the web-page users stack trace is not interesting (if not discouraging). Also the stack trace may reveal problems with site setup which is also a security problem.
Regardless of the 500 handling, shall we add the <div id="feedbackErrorMessage" style="color: red;"></div> to the wiki? It seems that we would usually want to show the user the errors like "Error: There are currently too many parallel requests. Please try again later." or "Your text exceeds this server's limit of XXX characters."? BTW I configured my server to 200 chars limit and submitted bigger text and I got correct message in the log: 2016-04-20 19:54:55 An error has occurred. Sending HTTP code 413. Stacktrace follows: org.languagetool.server.TextTooLongException: Your text exceeds this server's limit of 200 characters. ... but my web-page showed this instead "Error: Did not get response from service. Please try again in one minute.", when I try to submit POST manually I get 0 response for some reason. Regards, Andriy 2016-04-20 12:27 GMT-04:00 Daniel Naber <daniel.na...@languagetool.org>: > On 2016-04-20 17:48, Andriy Rysin wrote: > >> Can I also suggest we make 500 message more user-friendly? E.g. with >> something like this > > The common causes for 500 errors should all already have a friendly > error message. Something like ClassNotFound seems uncommon and should > only happen when setting up the system the first time, and I think in > these cases it makes sense to show the full stacktrace. > > Regards > Daniel > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > Languagetool-devel mailing list > Languagetool-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/languagetool-devel ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel