-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
print warning when server_name and cur_server_name don't match #760
Comments
I just spent multiple days trying to debug a Flask application that returned 404s for every request with no indication as to why the routes weren't being matched. It would help troubleshooting enormously if there were a visible warning when this mismatch occurs. |
I had the same issue. This should probably be an error, but there must atleast be a warning, as otherwise we have to dig through werkzeug source code just to find out that we have a config issue. |
… configured server name
If the server name is misconfigured, the
subdomain
is'<invalid>'
and no warning is printed.werkzeug/werkzeug/routing.py
Line 1302 in d637320
An improvement could be to print a warning if the names don't match, instead of just returning 404 errors for all pages.
The text was updated successfully, but these errors were encountered: