only raise RuntimeError due to missing request context in debug mode