Reputation: 16955
Based on other questions, I expected to be able to run the following command to get a dump of datastore entities for my app:
appcfg.py download_data --filename data.db .
(Here's the app.yaml
file in that directory.)
When I run that command, however, I get a long stack trace ending with a crypic error:
google.appengine.api.datastore_errors.BadRequestError: app s~old-nyc cannot access app old-nyc's data
I get this error even if I explicitly specify --application=old-nyc
. If, as suggested in this question, I specify --application=s~old-nyc
, then I get this error:
[ERROR ] Authentication Failed: Incorrect credentials or unsupported authentication type (e.g. OpenId).
What do I need to do to download my data?
Upvotes: 0
Views: 44
Reputation: 16955
Specifying --application s~old-nyc
changed the default URL to http://s~old-nyc.appengine.com
rather than http://old-nyc.appengine.com
. To get the command to work, I also had to specify --url http://old-nyc.appspot.com/remote_api
.
My full command was:
appcfg.py download_data --application s~old-nyc --url http://old-nyc.appspot.com/_ah/remote_api --filename data.db
Upvotes: 1