您好: 这个问题请再试下,看下是否ok了
如何解决云函数事务始终报request fail错误的问题?在调用事务API时一直报错,简单的操作数据库,基本和官方文档示例代码差不多,代码如下: [图片] 报错如下:[图片] APPID:wx42eae5294c314d3b 云环境ID:cloud-41 看了官方文档faq怀疑是环境的问题,请求大神帮忙,折腾了一下午,实在水平有限[图片]
2020-02-20您好: 请问现在问题仍然存在吗?
云数据库访问不了云数据库中user的某些记录访问不了 errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 60158571-4ff4-11ea-aba7-525400e4521d, cloud function service error code -504002, error message errCode: -502001 database request fail | errMsg: [An internal error has occurred. Retry your request, but if the problem persists, contact us.] InternalError; Error: errCode: -502001 database request fail | errMsg: [An internal error has occurred. Retry your request, but if the problem persists, contact us.] InternalError; [图片] [图片]
2020-02-15您好: 此报错由于调用数据库返回WriteConflict导致。请看下不同事务中是否会同时对同一资源进行写操作?
云数据事务报错:ResourceUnavailable.TransactionConflict?[图片] "document.update:fail [ResourceUnavailable.TransactionConflict] Transaction is conflict, maybe resource operated by others. Please check your request, but if the problem persists, contact us.; at document.update api; " 云数据库的一个简单事务处理,代码如下: const cmd = db.command; const updtranscation = await db.startTransaction(); res = await updtranscation.collection('xinfo').doc(_id).update({ data: info }); if(info.total_pay>0){ res = await updtranscation.collection("xaction").doc(info._id).update({ data:{ total_pay:cmd.inc(info.total_pay) } }); } updtranscation.commit();
2020-02-15您好,这里已经处理了,带来不便非常抱歉
为什么用官方事务的例子也会不行的?(多文档事务不能在分片群集中运行)环境 tema-dev [图片]
2020-02-13