{"action":"opened","issue":{"url":"https://api.github.com/repos/whit537/mongs/issues/28","labels_url":"https://api.github.com/repos/whit537/mongs/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/whit537/mongs/issues/28/comments","events_url":"https://api.github.com/repos/whit537/mongs/issues/28/events","html_url":"https://github.com/whit537/mongs/issues/28","id":127939719,"number":28,"title":"UnicodeDecodeError","user":{"login":"jaraco","id":308610,"avatar_url":"https://avatars.githubusercontent.com/u/308610?v=3","gravatar_id":"","url":"https://api.github.com/users/jaraco","html_url":"https://github.com/jaraco","followers_url":"https://api.github.com/users/jaraco/followers","following_url":"https://api.github.com/users/jaraco/following{/other_user}","gists_url":"https://api.github.com/users/jaraco/gists{/gist_id}","starred_url":"https://api.github.com/users/jaraco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaraco/subscriptions","organizations_url":"https://api.github.com/users/jaraco/orgs","repos_url":"https://api.github.com/users/jaraco/repos","events_url":"https://api.github.com/users/jaraco/events{/privacy}","received_events_url":"https://api.github.com/users/jaraco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-21T14:44:29Z","updated_at":"2016-01-21T14:44:29Z","closed_at":null,"body":"In the latest codebase, I'm getting this error querying a document.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/app/.heroku/venv/lib/python2.7/site-packages/algorithm.py\", line 288, in run\r\n    new_state = function(**deps.as_kwargs)\r\n  File \"/app/.heroku/venv/lib/python2.7/site-packages/aspen/algorithms/website.py\", line 115, in get_response_for_resource\r\n    return {'response': resource.respond(state)}\r\n  File \"/app/.heroku/venv/lib/python2.7/site-packages/aspen/http/resource.py\", line 59, in respond\r\n    content_type, body = super(Dynamic, self).respond(accept, state)\r\n  File \"/app/.heroku/venv/lib/python2.7/site-packages/aspen/simplates/__init__.py\", line 180, in respond\r\n    body = render(context)\r\n  File \"/app/.heroku/venv/lib/python2.7/site-packages/aspen/simplates/renderers/__init__.py\", line 150, in __call__\r\n    return self.render_content(context)\r\n  File \"/app/.heroku/venv/lib/python2.7/site-packages/aspen_jinja2_renderer.py\", line 66, in render_content\r\n    return self.compiled.render(context).encode(charset)\r\n  File \"/app/.heroku/venv/lib/python2.7/site-packages/jinja2/environment.py\", line 989, in render\r\n    return self.environment.handle_exception(exc_info, True)\r\n  File \"/app/.heroku/venv/lib/python2.7/site-packages/jinja2/environment.py\", line 754, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/app/www/%server/%database/%collection/%filter/%page.int/index.html.spt\", line 1, in top-level template code\r\n    \"\"\"Spaghetti! Who likes spaghetti? It's mildly documented spaghetti, at least.\r\n  File \"/app/base.html\", line 131, in top-level template code\r\n    {% block content %}{% endblock %}\r\n  File \"/app/www/%server/%database/%collection/%filter/%page.int/index.html.spt\", line 37, in block \"content\"\r\n    v = '%s (%s)' % (v, v.generation_time)\r\n  File \"/app/www/%server/%database/%collection/%filter/%page.int/index.html.spt\", line 247, in generate_pairs\r\n    pair = Pair(base, _id, k, v)\r\n  File \"/app/www/%server/%database/%collection/%filter/%page.int/index.html.spt\", line 54, in __init__\r\n    v = v.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xd4 in position 0: ordinal not in range(128)\r\n500 Internal Server Error            /localhost/gryphon-us/cases/{\"region\": \"US\", \"questionnaire_name\": \"G4_test_JR_gridint\"}/1/ ...s/aspen/www/error.spt\r\n```"}}