收藏
回答

transaction must be commit or abort in 30 seconds?

{ Error: errCode: -501001 resource system error | errMsg: document.get:fail [ResourceUnavailable.TransactionNotExist] Transaction does not exist on the server, transaction must be commit or abort in 30 seconds. Please check your request, but if the problem persists, contact us.; at document.get api; 

    at returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6086:16)

    at Object.returnAsFinalCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6100:15)

    at Promise (/var/user/node_modules/wx-server-sdk/index.js:1270:32)

    at 

    at process._tickCallback (internal/process/next_tick.js:188:7)

  errCode: -501001,

  errMsg: 'document.get:fail [ResourceUnavailable.TransactionNotExist] Transaction does not exist on the server, transaction must be commit or abort in 30 seconds. Please check your request, but if the problem persists, contact us.; at document.get api; ' }


Transaction does not exist on the server, transaction must be commit or abort in 30 seconds



事务不存在于服务器上?事务必须在30秒内提交或者终止?

我的事务代码的确是关联了三张表,也许会比较耗时。。


调用10次大概会有一次出现的概率。


还会爆出这样的错误:

{ code: 'DATABASE_TRANSACTION_FAIL',

  message: '[ResourceUnavailable.TransactionNotExist] Transaction does not exist on the server, transaction must be commit or abort in 30 seconds. Please check your request, but if the problem persists, contact us.',

  requestId: '1585703096928_0.49784180112680776_33619401-1585703097701_30_15269' }
最后一次编辑于  2020-04-01
回答关注问题邀请回答
收藏

5 个回答

  • Mr-👻
    Mr-👻
    2020-04-01

    我的也是,今天突然就这样了

    {"success":false,"error":{"errCode":-501001,"errMsg":"document.update:fail [ResourceUnavailable.TransactionNotExist] Transaction does not exist on the server, transaction must be commit or abort in 30 seconds. Please check your request, but if the problem persists, contact us.; at document.update api; "}}

    2020-04-01
    有用 1
    回复
  • 沫风很简单
    沫风很简单
    2023-02-27

    请确保你的事务最后返回了结果

    2023-02-27
    有用
    回复
  • 天意
    天意
    2022-06-07

    这个问题怎么解决?

    2022-06-07
    有用
    回复
  • 是小白啊
    是小白啊
    2020-04-01

    麻烦提供下appid

    2020-04-01
    有用
    回复 4
    • Reed
      Reed
      2020-04-01
      wx34c696e36ca04046,请查看一下,我的两个环境触发定时任务均出现此错误,事务都未提交但是数据却写入了
      2020-04-01
      回复
    • 小白17709205217
      小白17709205217
      2020-04-01
      wx77b4a9b95037b064
      2020-04-01
      回复
    • 小白17709205217
      小白17709205217
      2020-04-01回复小白17709205217
      实际上,我统计了事务代码运行时间,并未超过30秒,也就300毫秒以内。
      2020-04-01
      回复
    • 小白17709205217
      小白17709205217
      2020-04-01
      只是终止了事务,并不会错误地写入数据。
      2020-04-01
      回复
  • Reed
    Reed
    2020-04-01

    我的程序稳定运行了一个半月了,今天突然出现这样的故障,怀疑是云开发的问题!

    我之前遇到一个触发器的问题,至今没人解释、回复。。慎用云开发吧

    2020-04-01
    有用
    回复
登录 后发表内容
问题标签