Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environ['werkzeug.server.shutdown'] function is deprecated #1780

Closed
anders-kiaer opened this issue Sep 25, 2021 · 0 comments · Fixed by #1963
Closed

environ['werkzeug.server.shutdown'] function is deprecated #1780

anders-kiaer opened this issue Sep 25, 2021 · 0 comments · Fixed by #1963

Comments

@anders-kiaer
Copy link
Contributor

This line

stopper = flask.request.environ.get("werkzeug.server.shutdown")
gives

[...]/python3.7/site-packages/dash/testing/application_runners.py:122: UserWarning:
  The 'environ['werkzeug.server.shutdown']' function is deprecated and will be removed in Werkzeug 2.1.

See pallets/werkzeug#1873 and https://werkzeug.palletsprojects.com/en/2.0.x/serving/#shutting-down-the-server.

The function is said to be removed in Werkzeug 2.1 (Werkzeug is currently at 2.0.1).

Related issue over at plotly/jupyter-dash#63.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant