Wrong error description if MM3 server is offline
Bug #790669 reported by
benste
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DEFUNCT: Mailman 3 Web UI |
New
|
Undecided
|
Florian Fuchs |
Bug Description
Start the Django project, use the latest a7 compatible REST client.
You get a timed out connection if the Mailmanserver (localhost:8001) is not running.
This issue isn't catched, but somehow handled by Django showing a Attribute Error
"'NoneType' object has no attribute 'makefile'"
I'd suggest displaying an appropriate error instead.
Related branches
Changed in mailmanweb: | |
assignee: | nobody → Florian Fuchs (flo-fuchs) |
To post a comment you must log in.
Django Traceback:
Environment:
Request Method: GET localhost: 8000/ contrib. auth', contrib. contenttypes' , contrib. sessions' , contrib. sites', contrib. admin', middleware. common. CommonMiddlewar e', contrib. sessions. middleware. SessionMiddlewa re', middleware. locale. LocaleMiddlewar e', contrib. auth.middleware .Authentication Middleware' )
Request URL: http://
Django Version: 1.2.3
Python Version: 2.6.6
Installed Applications:
['django.
'django.
'django.
'django.
'django.
'mailman_django']
Installed Middleware:
('django.
'django.
'django.
'django.
Traceback: pymodules/ python2. 6/django/ core/handlers/ base.py" in get_response benste/ Projects/ Gsoc_mailman/ mailman_ django/ views.py" in list_index benste/ Projects/ Gsoc_mailman/ mailman_ django/ mailmanclient/ rest.py" in get_lists request( '/3.0/lists' ) benste/ Projects/ Gsoc_mailman/ mailman_ django/ mailmanclient/ rest.py" in _http_request python2. 6/dist- packages/ httplib2/ __init_ _.py" in request python2. 6/dist- packages/ httplib2/ __init_ _.py" in _request request( conn, request_uri, method, body, headers) python2. 6/dist- packages/ httplib2/ __init_ _.py" in _conn_request python2. 6/httplib. py" in getresponse self._method) python2. 6/httplib. py" in __init__
File "/usr/lib/
100. response = callback(request, *callback_args, **callback_kwargs)
File "/home/
130. lists = c.get_lists()
File "/home/
148. response = self._http_
File "/home/
105. response, content = Http().request(url, method, data, headers)
File "/usr/lib/
1129. (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/
901. (response, content) = self._conn_
File "/usr/lib/
871. response = conn.getresponse()
File "/usr/lib/
988. method=
File "/usr/lib/
330. self.fp = sock.makefile('rb', 0)
Exception Type: AttributeError at /
Exception Value: 'NoneType' object has no attribute 'makefile'