hi. Like I used to do it several years ago, I am attempting to *bulk download* the *entities* of the datastore of my app with *appcfg.py* (from latest python SDK)
I am using this little script: #!/bin/bash date=`date +%Y%m%d` appid=myappid url="https://$appid.appspot.com/_ah/remote_api" GOOGLE_APPLICATION_CREDENTIALS=myapp.json appcfg.py download_data -v -e [email protected] --application=s~$appid --url=$url --filename=allentities- $date.sql3 rm -f bulkloader-* because this command does not ask for an oauth token, I have previously run the command appcfg.py list_versions just to get the *oauth2* token And as said in https://developers.google.com/accounts/docs/application-default-credentials I have generated a *json* file with the google credentials and use it with GOOGLE_APPLICATION_CREDENTIALS variable as shown above. However when I run the script I get a long list of 2016-04-17 19:21:29,316 INFO client.py:546 Attempting refresh to obtain initial access_token 2016-04-17 19:21:29,378 INFO client.py:804 Refreshing access_token 2016-04-17 19:21:30,901 INFO client.py:578 Refreshing due to a 401 (attempt 1/2) 2016-04-17 19:21:30,988 INFO client.py:804 Refreshing access_token 2016-04-17 19:21:31,570 INFO client.py:578 Refreshing due to a 401 (attempt 2/2) 2016-04-17 19:21:31,659 INFO client.py:804 Refreshing access_token 2016-04-17 19:21:32,436 INFO client.py:578 Refreshing due to a 401 (attempt 1/2) 2016-04-17 19:21:32,526 INFO client.py:804 Refreshing access_token 2016-04-17 19:21:33,162 INFO client.py:578 Refreshing due to a 401 (attempt 2/2) [...] and this ends with Error 401: --- begin server output --- You must be logged in as an administrator to access this. --- end server output --- I have the same 401 error in the log of my app. What could be wrong ? I am the owner of the app and my email is listed as such in the logins I don't want to enable billing and use the Google Cloud Platform to export entities from the datastore with "Admin Datastore" (by the way clicking the button "Open Admin Datastore" does nothing, one need to use a right click and open in new tab to get something) -- 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/57840560-173c-4161-a3ba-54eb7313fd0d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
