GAE data download shows datastore_errors.BadRequestError

前端 未结 3 536
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 10:26

I\'m trying to download data from my Google App Engine app, using the official instructions

Remote API is set up & I call:

appcfg.py download_dat         


        
相关标签:
3条回答
  • 2020-12-30 10:48

    I ran into this same issue, but when attempting to use the remote API from a custom script as opposed to appcfg.py's bulk downloader.

    This issue may have been addressed in more recent GAE SDK releases, but for various reasons I'm still using the older 1.7 release. I found the answer in this bug report: https://code.google.com/p/googleappengine/issues/detail?id=4374

    Basically, when calling ConfigureRemoteApi, don't specify the APP_ID argument (just pass None) and specify your app ID via the host argument, e.g. 'myapp-hrd.appspot.com'. ConfigureRemoteApi will figure out your app ID correctly and won't add the 's~' that causes this problem.

    0 讨论(0)
  • 2020-12-30 10:52

    If using the high-replication datastore, change the value passed to --application from appname to s~appname.

    0 讨论(0)
  • 2020-12-30 11:00

    Found the problem - as an URL I was giving my own app's domain name instead of the 1.appname.appspot.com.

    0 讨论(0)
提交回复
热议问题