# Can you disable the passing of an unhandled exception to the client browser session?

**URL:** <https://support.openanalytics.eu/t/can-you-disable-the-passing-of-an-unhandled-exception-to-the-client-browser-session/3056>\
**Category:** ShinyProxy\
**Created:** [January 24, 2025, 11:48am UTC](https://support.openanalytics.eu/t/can-you-disable-the-passing-of-an-unhandled-exception-to-the-client-browser-session/3056 "2025-01-24T11:48:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielloader](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/danielloader/32/1074_2.png) [@danielloader](https://support.openanalytics.eu/u/danielloader)\
**Post date:** [January 24, 2025, 11:48am UTC](https://support.openanalytics.eu/t/can-you-disable-the-passing-of-an-unhandled-exception-to-the-client-browser-session/3056/1 "2025-01-24T11:48:50Z")

</div>

We’ve recently just had a penetration test where the functionality implemented in R had an unhandled exception and passed the stack trace back to the client calling, including the lines of code that failed - while helpful, was a fail because of exposing the internals of the function to work out how to exploit it.

Can this be disabled?

---

<div class="post-metadata">

**Author:** ![tdekoninck](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/tdekoninck/32/1079_2.png) [@tdekoninck](https://support.openanalytics.eu/u/tdekoninck)\
**Post date:** [February 13, 2025, 7:38am UTC](https://support.openanalytics.eu/t/can-you-disable-the-passing-of-an-unhandled-exception-to-the-client-browser-session/3056/2 "2025-02-13T07:38:27Z")

</div>

Hi

First of all and just to be sure, if you see any java exceptions, please let me know. This should no longer happen in recent versions of ShinyProxy.

If you see the errors/exceptions from R in the app, I think this can solve your issue: [Shiny - Sanitizing error messages](https://shiny.posit.co/r/articles/improve/sanitize-errors/)

---

<div class="post-metadata">

**Author:** ![danielloader](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/danielloader/32/1074_2.png) [@danielloader](https://support.openanalytics.eu/u/danielloader)\
**Post date:** [February 13, 2025, 9:11am UTC](https://support.openanalytics.eu/t/can-you-disable-the-passing-of-an-unhandled-exception-to-the-client-browser-session/3056/3 "2025-02-13T09:11:55Z")

</div>

Perfect thank you. Will go try this.
