收藏
回答

云函数中的事务老是报ResourceUnavailable.TransactionBusy怎么回事?

在云函数中新增了事务,但是会经常出下面这个错误,请问这个地方的事物有什么限制么?

{"errCode":-501001,"errMsg":"collection.add:fail -501001 resource system error. [ResourceUnavailable.TransactionBusy] Transaction is busy. Please check your request, but if the problem persists, contact us."}
回答关注问题邀请回答
收藏

2 个回答

  • moer
    moer
    2022-02-08

    (node:11) 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:11) 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:11) [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.

    REPORT RequestId:8f02c1a7-ba87-4212-81fb-83ec4b9bab46 Duration:330ms Memory:256MB MemUsage:23.812546MB

    2022-02-08
    有用
    回复
  • Joe
    Joe
    2021-07-08

    这个问题测试下来,好像只有在插入的数据中有比较大的字符串才出,比如一个字符串字段有40k。所以想问问云数据库这块有没有什么建议。

    2021-07-08
    有用
    回复
登录 后发表内容
问题标签