AppEngine - Remote API returning 401 and too-many-auth
I am trying to connect to an AppEngine instance with the remote API with something like this: os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = ".../path/to/key" remote_api_stub.ConfigureRemoteApiForOAuth( server.encode('ascii'), path, secure=True ) Where the path/to/key points to a JSON file created in the Google Cloud (Beta), API Manager -> Credentials -> Add Credentials -> Service Account . The service account "Can edit" per the Permissions panel. When I run this I get an error like this on the console, corresponding to a 401 (as reported in the App Engine log viewer): File "/usr/local/share