Skip to content

Instantly share code, notes, and snippets.

@pkrnjevic
Created January 16, 2013 19:09
Show Gist options
  • Save pkrnjevic/4549849 to your computer and use it in GitHub Desktop.
Save pkrnjevic/4549849 to your computer and use it in GitHub Desktop.
Google AppEngine error when attempting to download pdf from http://www.dynalinktech.com/downloads/manual.pdf
2013-01-16 10:29:12.450 /downloads/manual.pdf 500 38ms 0kb Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.29 Safari/537.22
74.14.183.104 - - [16/Jan/2013:10:29:12 -0800] "GET /downloads/manual.pdf HTTP/1.1" 500 0 "http://www.dynalinktech.com/html/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.29 Safari/537.22" "www.dynalinktech.com" ms=39 cpu_ms=21 instance=00c61b117c56c7e2a91c0735235775634465988b
E 2013-01-16 10:29:12.446
'utf8' codec can't decode byte 0xe2 in position 10: invalid continuation byte
Traceback (most recent call last):
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1511, in __call__
rv = self.handle_exception(request, response, e)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1505, in __call__
rv = self.router.dispatch(request, response)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1253, in default_dispatcher
return route.handler_adapter(request, response)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1077, in __call__
return handler.dispatch()
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 547, in dispatch
return self.handle_exception(e, self.app.debug)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 545, in dispatch
return method(*args, **kwargs)
File "/base/data/home/apps/s~dynalinktech-hrd/1.364053737212043156/main.py", line 58, in get
self.response.out.write (template.render (path, {}))
File "/python27_runtime/python27_lib/versions/1/google/appengine/ext/webapp/template.py", line 89, in render
t = _load_internal_django(template_path, debug)
File "/python27_runtime/python27_lib/versions/1/google/appengine/ext/webapp/template.py", line 163, in _load_internal_django
template = django.template.loader.get_template(file_name)
File "/python27_runtime/python27_lib/versions/1/google/appengine/_internal/django/template/loader.py", line 157, in get_template
template, origin = find_template(template_name)
File "/python27_runtime/python27_lib/versions/1/google/appengine/_internal/django/template/loader.py", line 134, in find_template
source, display_name = loader(name, dirs)
File "/python27_runtime/python27_lib/versions/1/google/appengine/_internal/django/template/loaders/filesystem.py", line 60, in load_template_source
return _loader.load_template_source(template_name, template_dirs)
File "/python27_runtime/python27_lib/versions/1/google/appengine/_internal/django/template/loaders/filesystem.py", line 39, in load_template_source
return (file.read().decode(settings.FILE_CHARSET), filepath)
File "/python27_runtime/python27_dist/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe2 in position 10: invalid continuation byte
E 2013-01-16 10:29:12.447
Traceback (most recent call last):
File "/base/data/home/apps/s~dynalinktech-hrd/1.364053737212043156/main.py", line 149, in main
run_wsgi_app (application)
File "/python27_runtime/python27_lib/versions/1/google/appengine/ext/webapp/util.py", line 98, in run_wsgi_app
run_bare_wsgi_app(add_wsgi_middleware(application))
File "/python27_runtime/python27_lib/versions/1/google/appengine/ext/webapp/util.py", line 116, in run_bare_wsgi_app
result = application(env, _start_response)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1519, in __call__
response = self._internal_error(e)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1511, in __call__
rv = self.handle_exception(request, response, e)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1505, in __call__
rv = self.router.dispatch(request, response)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1253, in default_dispatcher
return route.handler_adapter(request, response)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 1077, in __call__
return handler.dispatch()
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 547, in dispatch
return self.handle_exception(e, self.app.debug)
File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py", line 545, in dispatch
return method(*args, **kwargs)
File "/base/data/home/apps/s~dynalinktech-hrd/1.364053737212043156/main.py", line 58, in get
self.response.out.write (template.render (path, {}))
File "/python27_runtime/python27_lib/versions/1/google/appengine/ext/webapp/template.py", line 89, in render
t = _load_internal_django(template_path, debug)
File "/python27_runtime/python27_lib/versions/1/google/appengine/ext/webapp/template.py", line 163, in _load_internal_django
template = django.template.loader.get_template(file_name)
File "/python27_runtime/python27_lib/versions/1/google/appengine/_internal/django/template/loader.py", line 157, in get_template
template, origin = find_template(template_name)
File "/python27_runtime/python27_lib/versions/1/google/appengine/_internal/django/template/loader.py", line 134, in find_template
source, display_name = loader(name, dirs)
File "/python27_runtime/python27_lib/versions/1/google/appengine/_internal/django/template/loaders/filesystem.py", line 60, in load_template_source
return _loader.load_template_source(template_name, template_dirs)
File "/python27_runtime/python27_lib/versions/1/google/appengine/_internal/django/template/loaders/filesystem.py", line 39, in load_template_source
return (file.read().decode(settings.FILE_CHARSET), filepath)
File "/python27_runtime/python27_dist/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe2 in position 10: invalid continuation byte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment