>
> I have absolutely the same problem. Tried both 1.8.7 and 1.8.8 SDK on Mac 
> 1.9. All HTTP requests with OAuth token to Endpoints fail with that 
> decoding error. 


This is with 1.8.8 Python SDK 

Traceback (most recent call last):
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/api_server.py",
 
line 162, in _handle_POST
    api_response = _execute_request(request).Encode()
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/api_server.py",
 
line 120, in _execute_request
    make_request()
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/api_server.py",
 
line 115, in make_request
    request_id)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_stub.py",
 
line 128, in MakeSyncCall
    method(request, response, request_id)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/logservice/logservice_stub.py",
 
line 200, in _Dynamic_Flush
    self._insert_app_logs(request_id, group.log_line_list())
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_stub.py",
 
line 165, in WrappedMethod
    return method(self, *args, **kwargs)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/logservice/logservice_stub.py",
 
line 211, in _insert_app_logs
    '(?, ?, ?, ?)', new_app_logs)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/logservice/logservice_stub.py",
 
line 208, in <genexpr>
    for log_line in log_lines)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/logservice/logservice_stub.py",
 
line 218, in _tuple_from_log_line
    message = message.decode('utf-8')
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/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 0xbd in position 52: 
invalid start byte

RuntimeError('UnicodeDecodeError(\'utf8\', "id_token verification failed: 
Can\'t parse header: \\xc9\\xad\\xbd", 52, 53, \'invalid start byte\')',) 



The whole mess is caused by Encode() in api_server.py line 162. It adds 
some invalid symbols at the beginning and at the end. But HTTP request and 
token look OK. And actually code haven't changed for me. For me 2 things 
changed before this error started to appear:
1. I migrated code to Git repository
2. I updated to 1.8.7
3. I updated to Mac 1.9

And now I have no idea how to get rid of this error.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to