星期日 16:14小编发现微信小程序用户:【moer】提出了一个关于“ResourceUnavailable.TransactionBusy,不定期出现,怎么排查?”的问题,在问题中开发者moer对该问题做了如下阐述:
环境信息如下:
appID:wx12319570d48a6d07
环境ID: cloud-jialian-7ggg5ihe90f73f3b
日志内容 Request ID: 9b91f094-b012-4f94-980e-4c6ef18bb3ff
上次你说是事务锁的问题, 但是现在问题是:就我一个人测试。
(node:8) UnhandledPromiseRejectionWarning: Error: collection.add:fail -501001 resource system error. [ResourceUnavailable.TransactionBusy] Transaction is busy. Please check your request, but if the problem persists, contact us.
at Object.toSDKError (/var/user/node_modules/wx-server-sdk/index.js:8089:19)
at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1422:23)
at /var/user/node_modules/wx-server-sdk/index.js:1210:33
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:8) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `–unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:8) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
t_notify add 返回结果 resp :
{
“_id”: “17e3426e622468561217cbd627c3cfaf”,
“errMsg”: “collection.add:ok”
}
t_notify add 返回结果 resp :
{
“_id”: “17e3426e622468561217cbd3625577cb”,
“errMsg”: “collection.add:ok”
}
(node:8) UnhandledPromiseRejectionWarning: Error: collection.add:fail -501001 resource system error. [ResourceUnavailable.TransactionBusy] Transaction is busy. Please check your request, but if the problem persists, contact us.
at Object.toSDKError (/var/user/node_modules/wx-server-sdk/index.js:8089:19)
at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1422:23)
at /var/user/node_modules/wx-server-sdk/index.js:1210:33
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:8) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `–unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
REPORT RequestId:9b91f094-b012-4f94-980e-4c6ef18bb3ff Duration:373ms Memory:256MB MemUsage:25.184959MB
END
注:以上是微信小程序开发者:”moer”对于本问题的一些阐述,这里做一个引用,我们将实时关注微信小程序助手对该问题提出的解决方案。
【3小时前】微信小程序技术运营专员对用户moer提出的ResourceUnavailable.TransactionBusy,不定期出现,怎么排查?给予如下回复
云函数,一次写入多笔数据的时候,写数据库,不能用异步。 改成一条一条写入就好了。
流量变现是移动互联网永远的话题。由于用户属性和所属行业等原因,部分APP空有流量,但变现能力较弱。受制于原生APP单一的功能,这类企业对变现模式的探索屡屡碰壁。加入微信官方智能小程序,可以用智能小程序提升自己的商业化效率。
如果您也在使用微信小程序,请关注我们,如果您有关于微信小程序的使用问题请关注我们,如果您要找百度小程序模板、微信小程序模板请关注小程序模板网或者去微信开放社区找官方人员给予解决,相信微信官方在小程序上的发力会是一个里程碑!