I have been using BasicAuth to manage the logins in my app, but when the user goes to any other page than the main, they get a 403 error. Has anyone successfully implemented serer.errorhandler with Dash?
Is it possible to use @app.server.errorhandler as Input or caller for a callback?
I’m trying to e.g. open a modal with an error message when an exception occurrs.
so something like:
Is this really working for you inside a flask/dash app?
I thought this would be impossible: Dash with Flask - #2 by nedned
When I try to do the same with an almost empty html page in templates/, only containing:
I get Unexpected token < in JSON at position 0
I do not quite understand where to the rendered template gets send. Clearly, dash/flask is expecting json and not html as the error message states. (I also tried to jsonify the rendered page which obviously didn’t work).
However what I’m ultimately still trying to do is to change the content of any div within my dash/flask app when handle_internal_server_error() is called but this seems to be impossible as callbacks can only be called from components of the app and not programmatically.
It means that the server encountered an unexpected condition that prevented it from fulfilling the request. This error is usually returned by the server when no other error code is suitable