I am using appengine and I noticed that some of my requests crashed without outputing any logs.
After investigating I found some logs that were not forwarded to the output :
File "/home/vmagent/python_vm_runtime/lib/protorpc-1.0/protorpc/wsgi/service.py", line 191, in protorpc_service_app
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 3604468: ordinal not in range(128)
Hello,
I am using appengine and I noticed that some of my requests crashed without outputing any logs.
After investigating I found some logs that were not forwarded to the output :
It's happening here : https://github.com/google/protorpc/blob/master/protorpc/wsgi/service.py#L190
When the error raised is a
unicode
instead of anstr
it's crashing. You can reproduce the issue easily with this piece of code :In order to fix this you just have to add a
u
before the string in the logging statement :Is that something that could be fixed ? Would you accept a PR with this fix ?