Unable to upload data toremote server

38 views
Skip to first unread message

JeongWon Seo

unread,
Aug 24, 2015, 2:20:06 PM8/24/15
to Google App Engine
I have been unable to upload data to the remote server for about a week. Please save me here. My app.yaml and commands are as below

-app.yaml-

application: appid
version: 2
runtime: python27
api_version: 1
threadsafe: no

handlers:
- url: /my_remote.*
  script: google.appengine.ext.remote_api.handler.application
  login: admin
   
- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico
 
- url: .*
  script: main.app

libraries:
- name: webapp2
  version: "2.5.2"
- name: jinja2
  version: latest
 
builtins:
- remote_api: on

 
 
>appcfg.py upload_data --config_file=loaders
.py --kind=Question --filename=questions.csv --email=em...@gmail.com --has_h
eader  .
02:05 PM Application: appid
02:05 PM Uploading data records.
[INFO    ] Logging to bulkloader-log-20150824.140556
[INFO    ] Throttling transfers:
[INFO    ] Bandwidth: 250000 bytes/second
[INFO    ] HTTP connections: 8/second
[INFO    ] Entities inserted/fetched/modified: 20/second
[INFO    ] Batch Size: 10
[INFO    ] Opening database: bulkloader-progress-20150824.140556.sql3
[INFO    ] Connecting to appid.appspot.com/_ah/remote_api
Password for em...@gmail.com:
[ERROR   ] Exception during authentication
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bu
lkloader.py", line 3466, in Run
    self.request_manager.Authenticate()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bu
lkloader.py", line 1329, in Authenticate
    remote_api_stub.MaybeInvokeAuthentication()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remo
te_api\remote_api_stub.py", line 889, in MaybeInvokeAuthentication
    datastore_stub._server.Send(datastore_stub._path, payload=None)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pengine_rpc.py", line 409, in Send
    self._Authenticate()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pengine_rpc.py", line 550, in _Authenticate
    super(HttpRpcServer, self)._Authenticate()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pengine_rpc.py", line 293, in _Authenticate
    auth_token = self._GetAuthToken(credentials[0], credentials[1])
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pengine_rpc.py", line 245, in _GetAuthToken
    e.headers, response_dict)
ClientLoginError: HTTP Error 403: Forbidden
[ERROR   ] Authentication Failed: Incorrect credentials or unsupported authentic
ation type (e.g. OpenId).


pdknsk

unread,
Aug 24, 2015, 3:11:23 PM8/24/15
to Google App Engine
That's because bulkloader doesn't support OAuth2, and likely won't. I'm sure it's deprecated – Google has certainly removed all documentation about it.

You can try to change your account to still allow password-based authentication.


Alternatively, try gcloud-python to upload to the datastore manually.

Reply all
Reply to author
Forward
0 new messages