可以看下是否已经正常
如何解决云开发事务出现Bad Request?在使用调用数据库事务API时,一直返回transaction error 测试核心代码: [图片] 本地调试报错: transaction error =Error: errCode: -1 unknown error | errMsg: document.get:fail Error: 400 Bad Request ; at document.get api; 换成云函数日志如下: [图片] 环境信息: AppId: wx27be14567f13bd5d, envId: lb-lnrgg
2020-01-09不算. 实时推送客户端的 watch 是独立的
云数据库watch是否算入数据库同时连接数?最近想在小程序内做一个站内信实时提醒的功能,需要用到云数据库的watch函数。 关于db.collection.where.watch,想请问四个问题: 一、是否受限于数据库同时连接数?比如我当前的云开发套餐的限额是 数据库同时连接数100,那么是否最多只能100个用户同时watch? 我们的同时在线用户数如果是超过了100,那么会有用户建立watch连接失败吗? 二、watch进行监听的时候,是否消耗套餐资源?触发回调以后,消耗哪些套餐资源? 三、目前是否支持同时监听多个collection? 四、watch中的where表达式,是否支持字段之间的比较,比如collection中每个doc都有两个字段:阅读时间 time_read / 更新时间 time_update,是否支持监听 time_read < time_update ?
2019-12-30给下详细信息 appId, envId 这些? 应该需要升级
如何解决数据库事务API提示CloudSDKError的错误?在使用调用数据库事务API时,一直返回SDKError. 测试代码 [图片] 错误信息 index.js:37 transaction error CloudSDKError: errCode: -1 unknown error | errMsg: collection.add:fail Error: 400 Bad Request ; at collection.add api; at returnAsCloudSDKError (C:\...\node_modules\wx-server-sdk\index.js:6057:16) at Object.returnAsFinalCloudSDKError (C:\...\node_modules\wx-server-sdk\index.js:6071:15) at Promise (C:\...\node_modules\wx-server-sdk\index.js:1201:32) at processTicksAndRejections (internal/process/task_queues.js:86:5)
2019-12-30使用 DYNAMIC_CURRENT_ENV https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/init/server.init.html
云函数在A环境查询db,查询到B环境的数据,有人遇到过吗?云函数在A环境查询db,查询到B环境的数据,有人遇到过吗
2019-12-25联表查询不支持小程序端 https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/database/join.html
云开发数据库联表查询无权限[代码]const db = wx.cloud.database()[代码][代码] [代码][代码]db.collection([代码][代码]'pets'[代码][代码])[代码][代码] [代码][代码].get() [代码][代码] [代码][代码].then(res => {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]pets: res.data[代码][代码] [代码][代码]})[代码][代码] [代码][代码]})[代码][代码]const db = wx.cloud.database()[代码][代码] [代码][代码]db.collection([代码][代码]'shop'[代码][代码])[代码][代码] [代码][代码].get() [代码][代码] [代码][代码].then(res => {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]pets: res.data[代码][代码] [代码][代码]})[代码][代码] [代码][代码]})[代码] 正常查询都没问题 [代码]const db = wx.cloud.database()[代码][代码] [代码][代码]db.collection([代码][代码]'pets'[代码][代码]).aggregate()[代码][代码] [代码][代码].lookup({[代码][代码] [代码][代码]from: [代码][代码]'shop'[代码][代码],[代码][代码] [代码][代码]localField: [代码][代码]'shopId'[代码][代码],[代码][代码] [代码][代码]foreignField: [代码][代码]'_id'[代码][代码],[代码][代码] [代码][代码]as: [代码][代码]'shop'[代码][代码] [代码][代码]}) [代码][代码] [代码][代码].end() [代码][代码] [代码][代码].then(res => {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]pets: res.data[代码][代码] [代码][代码]})[代码][代码] [代码][代码]})[代码][代码] [代码][代码].[代码][代码]catch[代码][代码](err => console.error(err))[代码] 联表查询就报没权限了 [代码]VM490:1 Error: errCode: -502003 database permission denied | errMsg: Permission denied[代码][代码] [代码][代码]at [代码][代码]new[代码] [代码]u (WAService.js:1)[代码][代码] [代码][代码]at Function.success (WAService.js:1)[代码][代码] [代码][代码]at Object.success (WAService.js:1)[代码][代码] [代码][代码]at r (WAService.js:1)[代码][代码] [代码][代码]at WAService.js:1[代码][代码] [代码][代码]at v (WAService.js:1)[代码][代码] [代码][代码]at WAService.js:1[代码][代码] [代码][代码]at t.<anonymous> (VM504 asdebug.js:1)[代码][代码] [代码][代码]at WAService.js:1[代码][代码] [代码][代码]at WAService.js:1[代码]
2019-12-13是在 return 返回后的异步流程里调用的? 函数的日志截图看看
云函数数据库保存时经常报错:-501001 signature is expired[代码]db.collection(collection).doc(userInfo.uid).set({[代码][代码] [代码][代码]data: userInfo[代码][代码]}).then(e => {[代码][代码] [代码][代码]console.log(e)[代码][代码]}).[代码][代码]catch[代码][代码](er => {[代码][代码] [代码][代码]console.log([代码][代码]'云函数保存用户信息出错:'[代码][代码], er)[代码][代码]})[代码] 2019-11-14T05:26:14.923Z 云函数保存用户信息出错: { Error: errCode: -501001 resource system error | errMsg: signature is expired; at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6395:28) at Object.returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6447:16) at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1678:23) at DocumentReference.<anonymous> (/var/user/node_modules/wx-server-sdk/index.js:1538:41) at step (/var/user/node_modules/tslib/tslib.js:136:27) at Object.next (/var/user/node_modules/tslib/tslib.js:117:57) at fulfilled (/var/user/node_modules/tslib/tslib.js:107:62) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) errCode: -501001, errMsg: 'signature is expired; ' } 2019-11-14T05:49:16.209Z 云函数保存用户信息出错: { Error: errCode: -501001 resource system error | errMsg: signature is expired; at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6395:28) at Object.returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6447:16) at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1678:23) at DocumentReference.<anonymous> (/var/user/node_modules/wx-server-sdk/index.js:1538:41) at step (/var/user/node_modules/tslib/tslib.js:136:27) at Object.next (/var/user/node_modules/tslib/tslib.js:117:57) at fulfilled (/var/user/node_modules/tslib/tslib.js:107:62) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) errCode: -501001, errMsg: 'signature is expired; ' } 2019-11-15T02:48:06.867Z 云函数保存用户信息出错: { Error: errCode: -501001 resource system error | errMsg: signature is expired; at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6395:28) at Object.returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6447:16) at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1678:23) at DocumentReference.<anonymous> (/var/user/node_modules/wx-server-sdk/index.js:1538:41) at step (/var/user/node_modules/tslib/tslib.js:136:27) at Object.next (/var/user/node_modules/tslib/tslib.js:117:57) at fulfilled (/var/user/node_modules/tslib/tslib.js:107:62) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) errCode: -501001, errMsg: 'signature is expired; ' } 一点都不稳定嘛,怎么敢用? 没人处理解释,我就天天发。
2019-11-15配额用完了?
云开发控制台中的云存储有BUG?1、突然发现原来正常显示的轮播图无法显示了,其他图片也显示不出来了。 [图片] 2、上传图片到云存储再到数据库时,提交不成功;只提交文字信息,就可以提交。 [图片] 3、在云存储上新建文件夹,失败。 [图片] 4、在云存储上上传图片,失败。 [图片] 请问这是什么问题,谢谢!
2019-10-26重新上传云函数看下
云服务今天是不是出问题了?云服务今天是不是出问题了?看了一下日志,一直在报这个错误:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Cannot find module './_baseSet'"}
2019-10-23lookup 可以 https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/database/join.html
云开发 关联查询数据?我查询我的收藏 记录 然后想关联查询出我的收藏数据 [代码]/**[代码][代码] [代码][代码]* 获取我的收藏记录[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]get_collection: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]const db = wx.cloud.database()[代码][代码] [代码][代码]const _ = db.command[代码][代码] [代码][代码]var[代码] [代码]openid = wx.getStorageSync([代码][代码]'openid'[代码][代码])[代码][代码] [代码][代码]//先获取收藏记录数据[代码][代码] [代码][代码]db.collection([代码][代码]'collection'[代码][代码]).where({[代码][代码] [代码][代码]_openid: openid[代码][代码] [代码][代码]}).get({[代码][代码] [代码][代码]success(res){[代码][代码] [代码][代码]var[代码] [代码]date = res.data;[代码][代码] [代码][代码]var[代码] [代码]id = [];[代码][代码] [代码][代码]for[代码] [代码]([代码][代码]var[代码] [代码]i = 0; i<date.length;i++){[代码][代码] [代码][代码]id[i] = date[i].id;[代码][代码] [代码][代码]}[代码][代码] [代码][代码]//获得处理为数组 id=【25,26】[代码][代码] [代码][代码]// 再通过数组查询相关ID的数据[代码][代码] [代码][代码]db.collection([代码][代码]'content'[代码][代码]).where({[代码][代码] [代码][代码]_id: _.[代码][代码]in[代码][代码](id)[代码][代码] [代码][代码]}).get({[代码][代码] [代码][代码]success(res){[代码][代码] [代码][代码]// this.setData({[代码][代码] [代码][代码]// date_arry: res.data[代码][代码] [代码][代码]// })[代码][代码] [代码][代码]console.log(res);[代码][代码] [代码][代码]},fail(res){[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码] [代码] [代码][代码]},[代码][代码] [代码][代码]fail(res){ console.log(res) }[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码]在第二步通过数组ID查询数据 为什么set不成功 还有就是有时候能查询的到 有事查询不到数据记录 就是下面这个代码 的success方法[代码]// 再通过数组查询相关ID的数据[代码][代码] [代码][代码]db.collection([代码][代码]'content'[代码][代码]).where({[代码][代码] [代码][代码]_id: _.[代码][代码]in[代码][代码](id)[代码][代码] [代码][代码]}).get({[代码][代码] [代码][代码]success(res){[代码][代码] [代码][代码]// this.setData({[代码][代码] [代码][代码]// date_arry: res.data[代码][代码] [代码][代码]// })[代码][代码] [代码][代码]console.log(res);[代码][代码] [代码][代码]},fail(res){[代码][代码] [代码] [代码] [代码][代码]}[代码][代码] [代码][代码]})[代码]
2019-10-14看下这个 https://developers.weixin.qq.com/community/develop/doc/0008820af6c61820cd395b1e05b800?jumpto=comment&commentid=000ce4d9150dc8b1c439980325b4
调用templateMessage.send 的问题?WAService.js:1 Uncaught (in promise) Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 73534f91-e2d3-11e9-bd2f-525400dee61a, cloud function service error code -504002, error message errCode: -501001 resource system error | errMsg: openapi.templateMessage.send:fail source.on is not a function; at openapi.templateMessage.send api; ; at cloud.callFunction api; 请问怎么解决这个问题,所有部署都按照官方的做了,也反复检查了还是解决不了问题
2019-10-11