这个问题解决了么?
云开发怎么设置公众号的ip白名单?小程序是用的云开发来做的, 新需求是希望能通过公众号给用户推送提醒消息,我在云函数上使用公众号的appid和secret来获取access_token,结果是失败,因为没有加ip白名单, 但是云开发后台的ip地址一直在变化,怎么办?
2020-01-04升级了一下开发者工具,提示了更多的错误信息,看起来像是mongo数据库版本问题... MongoDB 4.0里也写了同样一句multi-document transactions are not available for sharded cluster :( index.js:37 transaction error Error: errCode: -502001 database request fail | errMsg: collection.add:fail [FailedOperation] (Location50841) Multi-document transactions cannot be run in a sharded cluster.; at collection.add api; at returnAsCloudSDKError (:\...\node_modules\wx-server-sdk\index.js605716) at Object.returnAsFinalCloudSDKError (:\...\node_modules\wx-server-sdk\index.js607115) at C:\...\node_modules\wx-server-sdk\index.js:1201:32 at processTicksAndRejections (internal/process/task_queues.js85)
如何解决数据库事务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-26