This site is an archive; learn more about 8 years of OpenHatch.

[Devel] [Kaboom at OH] Error (EXTERNAL IP): /+geocode

mr_website at linode.openhatch.org mr_website at linode.openhatch.org
Wed Feb 3 19:57:27 UTC 2010


Traceback (most recent call last):

  File "/home/deploy/milestone-a.buildout/parts/production/django/core/handlers/base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/deploy/milestone-a.buildout/mysite/base/views.py", line 168, in geocode
    coordinates_as_json = mysite.base.controllers.cached_geocoding_in_json(address)

  File "/home/deploy/milestone-a.buildout/mysite/base/controllers.py", line 90, in cached_geocoding_in_json
    geocoded = _geocode(address)

  File "/home/deploy/milestone-a.buildout/mysite/base/controllers.py", line 62, in _geocode
    query_string = urllib.urlencode({'q': address, 'output': 'csv'})

  File "/usr/lib/python2.5/urllib.py", line 1250, in urlencode
    v = quote_plus(str(v))

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 4: ordinal not in range(128)


<WSGIRequest
GET:<QueryDict: {u'address': [u'Bark\xe5ker, T\xf8nsberg, Vestfold, Norway']}>,
POST:<QueryDict: {}>,
COOKIES:{'openid_provider': 'yahoo', 'sessionid': 'eeaee730b69854849453c62d4b3014f6'},
META:{'DOCUMENT_ROOT': '/var/www/',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTPS': '1',
 'HTTP_ACCEPT': 'application/json, text/javascript, */*',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'openid_provider=yahoo; sessionid=eeaee730b69854849453c62d4b3014f6',
 'HTTP_HOST': 'openhatch.org',
 'HTTP_REFERER': 'https://openhatch.org/people/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5',
 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
 'PATH': '/usr/local/bin:/usr/bin:/bin',
 'PATH_INFO': u'/+geocode',
 'PATH_TRANSLATED': '/home/deploy/milestone-a.buildout/bin/production.wsgi/+geocode',
 'QUERY_STRING': 'address=Bark%C3%A5ker%2C+T%C3%B8nsberg%2C+Vestfold%2C+Norway',
 'REMOTE_ADDR': '71.201.44.115',
 'REMOTE_PORT': '55708',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/+geocode?address=Bark%C3%A5ker%2C+T%C3%B8nsberg%2C+Vestfold%2C+Norway',
 'SCRIPT_FILENAME': '/home/deploy/milestone-a.buildout/bin/production.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '74.207.229.254',
 'SERVER_ADMIN': 'webmaster at localhost',
 'SERVER_NAME': 'openhatch.org',
 'SERVER_PORT': '443',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.14 (Debian) Server at openhatch.org Port 443</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.14 (Debian)',
 'SSL_TLS_SNI': 'openhatch.org',
 'mod_wsgi.application_group': 'openhatch.org|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '443',
 'mod_wsgi.process_group': 'live',
 'mod_wsgi.reload_mechanism': '1',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (2, 5),
 'wsgi.errors': <mod_wsgi.Log object at 0x88fd218>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x9121020>,
 'wsgi.input': <mod_wsgi.Input object at 0x93e9548>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'https',
 'wsgi.version': (1, 0)}>


More information about the Devel mailing list