const db = uniCloud.database() //代码块为cdb
db.collection('games')
.where('time>' + today.getTime())
.get()
.then((res)=>{
console.log('then')
console.log(res);
}).catch((err)=>{
console.log(err)
console.log(err.code); // 打印错误码
console.log(err.message); // 打印错误内容
})
这段代码在“连接本地云函数”环境时正常运行,切换到“连接云端云函数”就报错。
报错信息是“unknown system error”
{
"code": "SYSTEM_ERROR",
"errCode": "SYSTEM_ERROR",
"errMsg": "unknown system error",
"stack": "Error\n at new Wrapper (http://localhost:8080/static/js/chunk-vendors.js:35459:37)\n at Q._createSuperInternal (http://localhost:8080/static/js/chunk-vendors.js:21855:24)\n at new Q (http://localhost:8080/static/js/chunk-vendors.js:46431:21)\n at http://localhost:8080/static/js/chunk-vendors.js:51369:18"
}
我确定已经上传所有云函数和schema extension。
阿良1024 (作者)
应该有多条失败的日志。看不懂这个日志
2023-01-30 14:18