I have a flask + Gevent-socketio mini website. Is launched:
app = Flask(__name__)
app.debug = True
@werkzeug.serving.run_with_reloader
def runServer():
print 'Listening on %s...' % WEB_PORT
ws = SocketIOServer(('0.0.0.0', WEB_PORT),
SharedDataMiddleware(app, {}),
resource="socket.io",
policy_server=False)
ws.serve_forever()
However, when a error happend in my views, it output
<pre style="word-wrap: break-word; white-space: pre-wrap;">Internal Server Error</pre>
instead of show the werkzeug debugger. Also, my custom @app.errorhandler(500)
is not called.
This happend on using Gevent-socketio, regular flask website works fine.
I wonder what is handling the error and canceling the default flask behavior...