Thu 19 Apr 2012 01:53:39 PM UTC, original submission:
Sometimes, the /apis/papersize/ handler fails with an exception, like this one:
"""
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 100, in get_response
response = callback(request, callback_args, *callback_kwargs)
File "/home/maposmatic/maposmatic-prod/maposmatic/www/maposmatic/views.py", line 247, in query_papersize
lat_bottom_right, lon_bottom_right)
File "/home/maposmatic/maposmatic-prod/ocitysmap/ocitysmap2/coords.py", line 86, in _init_
(self._lat1, self._long1) = float(lat1), float(long1)
TypeError: float() argument must be a string or a number
<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'lat_bottom_right': [u''], u'layout': [u'single_page_index_bottom'], u'lat_upper_left': [u''], u'lon_upper_left': [u''], u'stylesheet': [u'Default'], u'lon_bottom_right': [u'']}>,
COOKIES:{XXXXXXXXXXXXXXXXXXXXX},
META:{'CONTENT_LENGTH': '118',
'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
'DOCUMENT_ROOT': '/home/maposmatic/public_html/www.maposmatic.org',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': '/',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3',
'HTTP_CACHE_CONTROL': 'no-cache',
'HTTP_CONNECTION': 'Keep-Alive',
'HTTP_COOKIE': XXXXXXXXXXXXXXXXXXXXX,
'HTTP_HOST': 'www.maposmatic.org',
'HTTP_PRAGMA': 'no-cache',
'HTTP_REFERER': 'http://www.maposmatic.org/new/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0',
'HTTP_VIA': '1.0 PROXY',
'HTTP_X_BLUECOAT_VIA': 'CD965CDC93882071',
'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
'PATH_INFO': u'/apis/papersize/',
'PATH_TRANSLATED': '/home/maposmatic/public_html/www.maposmatic.org/maposmatic.wsgi/apis/papersize/',
'QUERY_STRING': '',
'REMOTE_ADDR': 'XXXXXXXXXXXXXXXXXXXXX',
'REMOTE_PORT': 'XXXXXXXXXXXXXXXXXXXXX',
'REQUEST_METHOD': 'POST',
'REQUEST_URI': '/apis/papersize/',
'SCRIPT_FILENAME': '/home/maposmatic/public_html/www.maposmatic.org/maposmatic.wsgi',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '193.19.209.9',
'SERVER_ADMIN': 'webmaster@maposmatic.org',
'SERVER_NAME': 'www.maposmatic.org',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '<address>Apache/2.2.16 (Debian) Server at http://www.maposmatic.org Port 80</address>\n',
'SERVER_SOFTWARE': 'Apache/2.2.16 (Debian)',
'mod_wsgi.application_group': 'maposmatic.org|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.handler_script': '',
'mod_wsgi.input_chunked': '0',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '80',
'mod_wsgi.process_group': '',
'mod_wsgi.request_handler': 'wsgi-script',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (3, 2),
'wsgi.errors': <mod_wsgi.Log object at 0x7f0449698ab0>,
'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f04496aab70>,
'wsgi.input': <mod_wsgi.Input object at 0x7f0449698470>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 1)}>
"""
|