I've found an issue after upgrading to hapi-authorization 3.0.0. If you just throw an exception in a Hapi handler, then the response stays open and hangs forever.
I managed to create a test reproducing the problem here, to me it looks like the solution would be to avoid the global try/catch in onPreHandler or catching the specific errors thrown by hapi-authorization itself and not every exception. But not sure if that would be the best solution, probably you know better than me. Thanks for your help.
Hi!
I've found an issue after upgrading to hapi-authorization 3.0.0. If you just throw an exception in a Hapi handler, then the response stays open and hangs forever.
I managed to create a test reproducing the problem here, to me it looks like the solution would be to avoid the global try/catch in
onPreHandler
or catching the specific errors thrown by hapi-authorization itself and not every exception. But not sure if that would be the best solution, probably you know better than me. Thanks for your help.