When I try to upload a sample csv data to my GAE app through appcfg.py
, it shows the below 401 error.
2015-11-04 10:44:41,820 INFO client.py:571
You cannot use the appcfg.py upload_data
command with the development server [edit: as is; see Josh J's answer]. It only works with the remote_api
endpoint running on App Engine and authenticated with OAuth2.
An easy way to load data into the dev server's datastore is to create an endpoint that reads a CSV file and creates the appropriate datastore entities, then hit it with the browser. (Be sure to remove the endpoint before deploying the app, or restrict access to the URL with login: admin
.)