Cannot upload/download entities from Cloud Datastore.
In the past I used the bulkloader utility to upload/download entities to the Datastore. Now when I try I get a error traceback ending with: oauth2client.client.ApplicationDefaultCredentialsError: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
I've followed the suggestions on that the link, but then I get this error: 2019-10-07 08:18:28,017 INFO client.py:546 Attempting refresh to obtain initial access_token 2019-10-07 08:18:28,246 INFO client.py:804 Refreshing access_token Error 302: --- begin server output --- --- end server output ---
I've tried including the --oauth2 key with both --oauth2_access_token and the ---oauth2_refresh_token (all keys have Owner Permissions) but I keep getting the 302 refresh error.
c:\python27\python appcfg.py download_data --config_file=bulkloader.yaml --filename=MyTable.csv --kind=MyTable --url http://google.appspot.com/remote_api --application=google
INFO client.py:804 Refreshing access_token Error 302:
Does anyone have a suggestion what I might try to get this to work? Is anyone still using the bulk-loader?
I think that what you are looking for is in the document "Exporting and Importing Entities" https://cloud.google.com/datastore/docs/export-import-entities