上传fetchserver时出现Error 400的解决办法

首先说下快速搭建GAppProxy的步骤:

1,注册GAE并创建一个Application,详情参考小众给出的教程。

2,下载GAP的服务端fetchserver的源码包,最新版可直接访问这里。打开app.yaml文件,将application的值修改为之前创建的application title。

3,下载第三方上传工具SDUpload。

4,将fetchserver源码包的文件夹放在SDUpload目录下,执行"SDUpload update fetchserver"。

这时可能遇到如下错误提示:

Error 400: --- begin server output ---
Creating a composite index failed: This index:
entity_type: "AccessDestination"
ancestor: false
Property {
name: "counter"
direction: 2
}

is not necessary, since single-property indices are built in. Please remove it f
rom your index file and upgrade to the latest version of the SDK, if you haven't
already.
--- end server output ---

这个问题是由于index.yaml中包含的单属性索引信息(上例中只有一个name属性)造成的。

解决办法之一:删除index.yaml,重新上传,代理服务不受影响。

之二:删除单属性的索引规则,或者添加属性即可,for example:

- kind: AccessDestination
properties:
- name: counter
direction: desc
- name: date

猜你喜欢

转载自chokee.iteye.com/blog/992570