Hmm did some searching, and after further testing found that I could get both appcfg download_data and remote_api_shell to work by using gcloud login, but no amount of effort seems to get an application service account working as outlined https://developers.google.com/identity/protocols/application-default-credentials
T On Sunday, January 3, 2016 at 5:47:27 PM UTC+8, timh wrote: > > Hi > > I haven't had to use the remote_api for some time, and now need to use the > bulkloader and remote_api_shell. (Appengine app was first deployed in 2012) > > However utilising the current SDK 1.9.30 and after creating service > accounts, it seems that there is an ongoing problem with authentication .' > > I get the following when trying use download_data > > [DEBUG ] [WorkerThread-0] WorkerThread: started > 2016-01-03 15:01:19,810 INFO client.py:539 Attempting refresh to obtain > initial access_token > 2016-01-03 15:01:20,118 INFO client.py:797 Refreshing access_token > 2016-01-03 15:01:21,733 INFO client.py:571 Refreshing due to a 401 > (attempt 1/2) > 2016-01-03 15:01:22,040 INFO client.py:797 Refreshing access_token > 2016-01-03 15:01:23,101 INFO client.py:571 Refreshing due to a 401 > (attempt 2/2) > 2016-01-03 15:01:23,415 INFO client.py:797 Refreshing access_token > > repeated infinitely. > > I have tried multiple variations and using the remote_api_shell, which > eventually times out with to many failed attempts. > > Following the docs on the Creating an Application Default Credentials and > the only type of account that has a correctly formatted json credential > file is a "Application Service Account" > > The permissions are "Edit" for the Service Account. > > (Note the docs are incorrect as far the cloud console sections, for > instance it refers to "APIs & Auth" however that section is called "API > Manager" > > I am only using the "builtin" remote api definition. > > Has anyone been able to use the remote_api_shell with recent SDK's ? > > Any thoughts. > > > Cheers > > Tim > -- 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 https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/226e0c30-2777-418a-9771-036e8f52eea0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
