Task #840
Fix 500 Internal Server Error when doing GET without Accept header
100%
Description
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] mod_wsgi (pid=23345): Exception occurred processing WSGI script '/var/local/mn_service/mn_prototype/gmn.wsgi'.
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] Traceback (most recent call last):
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] File "/usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/core/handlers/wsgi.py", line 245, in +call+
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] response = middleware_method(request, response)
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] File "/var/local/mn_service/mn_prototype/../mn_prototype/mn_service/middleware/response_handler.py", line 317, in process_response
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] response = serialize_object(request, view_result)
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] File "/var/local/mn_service/mn_prototype/../mn_prototype/mn_service/middleware/response_handler.py", line 150, in serialize_object
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] doc, content_type = type.serialize(accept, pretty, jsonvar)
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] File "/var/local/mn_service/mn_prototype/./d1common/types/objectlist_serialization.py", line 102, in serialize
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] content_type = d1common.ext.mimeparser.best_match(self.pri, accept)
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] File "/var/local/mn_service/mn_prototype/./d1common/ext/mimeparser.py", line 121, in best_match
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] parsed_header = [parse_media_range(r) for r in header.split(",")]
[Thu Sep 09 11:53:47 2010] [error] [client 160.36.81.230] AttributeError: 'NoneType' object has no attribute 'split'
History
#1 Updated by Roger Dahl over 14 years ago
- Status changed from New to Closed