Opened 13 years ago
Closed 12 years ago
#17489 closed Bug (wontfix)
Errors low in the stack provide unhelpful text.
Reported by: | Issac Kelly | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.4-alpha-1 |
Severity: | Normal | Keywords: | |
Cc: | chomik | Triage Stage: | Design decision needed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I had an error in my cache configuration for a full-site cache setup.
Here are the relavent settings:
MIDDLEWARE_CLASSES = [
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'pagination.middleware.PaginationMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
]
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'unique-snowflake'
}
}
CACHE_MIDDLEWARE_ALIAS = 'somethingelse'
CACHE_MIDDLEWARE_SECONDS = 90 * 60
CACHE_MIDDLEWARE_KEY_PREFIX = 'issackelly_com_mw'
With these settings I got a traceback in the runserver console, but the only thing that was displayed in the browser was the following:
"""A server error occurred. Please contact the administrator."""
Change History (4)
comment:1 by , 13 years ago
Cc: | added |
---|---|
Triage Stage: | Unreviewed → Design decision needed |
comment:2 by , 12 years ago
Component: | Uncategorized → Core (Other) |
---|
comment:3 by , 12 years ago
Type: | Uncategorized → Bug |
---|
The error message isn't generated by Django, I suppose it's displayed by your browser when it doesn't even receive an HTTP response.
comment:4 by , 12 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
At the moment when this exception is raised there is no request object available. Traceback error page would have to be created by hand and returned bypassing normal request dispatching.
Creating response would involve complex exception handling and would prevent proper exception propagation.
It is safer to leave it as it is.