When setting the PROPAGATE_EXCEPTIONS config variable to True, the ASGI app does not propagate the exceptions but instead returns the traceback as HTML. The expected behavior is to propagate the exception so that, for example, debuggers can handle it. The propagation works when setting the testing flag to True.
When setting the
PROPAGATE_EXCEPTIONS
config variable toTrue
, the ASGI app does not propagate the exceptions but instead returns the traceback as HTML. The expected behavior is to propagate the exception so that, for example, debuggers can handle it. The propagation works when setting thetesting
flag toTrue
.Below is the minimal reproducible example:
Environment: