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

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

mr_website at linode.openhatch.org mr_website at linode.openhatch.org
Tue Dec 8 00:16:48 UTC 2009


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/search/views.py", line 124, in fetch_bugs
    return render_to_response('search/search.html', data)

  File "/home/deploy/milestone-a.buildout/parts/production/django/shortcuts/__init__.py", line 20, in render_to_response
    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/loader.py", line 108, in render_to_string
    return t.render(context_instance)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 178, in render
    return self.nodelist.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 779, in render
    bits.append(self.render_node(node, context))

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 792, in render_node
    return node.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/loader_tags.py", line 97, in render
    return compiled_parent.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 178, in render
    return self.nodelist.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 779, in render
    bits.append(self.render_node(node, context))

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 792, in render_node
    return node.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/loader_tags.py", line 97, in render
    return compiled_parent.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 178, in render
    return self.nodelist.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 779, in render
    bits.append(self.render_node(node, context))

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 792, in render_node
    return node.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/loader_tags.py", line 24, in render
    result = self.nodelist.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 779, in render
    bits.append(self.render_node(node, context))

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 792, in render_node
    return node.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/loader_tags.py", line 24, in render
    result = self.nodelist.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 779, in render
    bits.append(self.render_node(node, context))

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 792, in render_node
    return node.render(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/defaulttags.py", line 119, in render
    values = self.sequence.resolve(context, True)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 546, in resolve
    obj = self.var.resolve(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 687, in resolve
    value = self._resolve_lookup(context)

  File "/home/deploy/milestone-a.buildout/parts/production/django/template/__init__.py", line 722, in _resolve_lookup
    current = current()

  File "/home/deploy/milestone-a.buildout/mysite/search/controllers.py", line 153, in get_possible_facets
    toughness_options = self.get_facet_options('toughness', ['bitesize', ''])

  File "/home/deploy/milestone-a.buildout/mysite/search/controllers.py", line 147, in get_facet_options
    return [get_facet_option_data(n) for n in option_names]

  File "/home/deploy/milestone-a.buildout/mysite/search/controllers.py", line 121, in get_facet_option_data
    query_string = urllib.urlencode(GET_data)

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

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


<WSGIRequest
GET:<QueryDict: {u'q': [u'fran\xe7ais']}>,
POST:<QueryDict: {}>,
COOKIES:{'oh_wikiToken': '89e6cf07c2b463ef3501b8d64e9c7458',
 'oh_wikiUserID': '3',
 'oh_wikiUserName': 'Raphael',
 'openid_provider': 'google',
 'sessionid': '1f13ff120d6eb720e0eb78d11e29f86f'},
META:{'DOCUMENT_ROOT': '/var/www/',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTPS': '1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'openid_provider=google; sessionid=1f13ff120d6eb720e0eb78d11e29f86f; oh_wikiUserID=3; oh_wikiUserName=Raphael; oh_wikiToken=89e6cf07c2b463ef3501b8d64e9c7458',
 'HTTP_HOST': 'openhatch.org',
 'HTTP_KEEP_ALIVE': '300',
 'HTTP_REFERER': 'https://openhatch.org/search/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.04 (jaunty) Shiretoko/3.5.5',
 'PATH': '/usr/local/bin:/usr/bin:/bin',
 'PATH_INFO': u'/search/',
 'PATH_TRANSLATED': '/home/deploy/milestone-a.buildout/bin/production.wsgi/search/',
 'QUERY_STRING': 'q=fran%C3%A7ais',
 'REMOTE_ADDR': '98.140.110.49',
 'REMOTE_PORT': '39576',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/search/?q=fran%C3%A7ais',
 '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.9 (Debian) PHP/5.2.11-1 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.4 Server at openhatch.org Port 443</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) PHP/5.2.11-1 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.4',
 '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 0xa5a9218>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x95da0b0>,
 'wsgi.input': <mod_wsgi.Input object at 0x9d9a0c0>,
 '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