通过HTTP API调用云端数据库,使用聚合功能报错errcode: -602002?
发布于 7 年前 作者 odai 7136 次浏览 来自 官方Issues

报错代码

{“errcode”: -602002,

    “errmsg”: “invalid query string hint: [RJCatgsFE-_.XsUA]”}

 提交的参数

{“env”:“testes-statistics-te-795ce3”,

  “query”:“db.collection(\“attendance\”).aggregate().limit(10).end()”}

使用https://api.weixin.qq.com/tcb/databaseaggregate这个接口

如果使用https://api.weixin.qq.com/tcb/databasequery这个接口的话可以正常读取 只是没有聚合效果

3 回复

我也是这个错误,找不到原因

请问找到原因了吗,我也出现相同问题

db.collection(“attendance”).aggregate().limit(10).end()在控制台运行一下。

回到顶部