请确保你的事务最后返回了结果
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' }
2023-02-27使用json格式提交
47001 - data format error hint{"access_token":"11_AvQppkhR4ySqaBE8gGqDY0sO8qQfJ08Rj8X6DXAzmAzgSg1KpZ9Ng8HSKWpsbFDuadfYGYkphP1Lz9ZiKkXGIaI0uZCpHdKpXuRjyR05gOhdGulewYOU9z-_8GAT3FldKHYFCDpaqhYLcNaWJTFdAEDFPB","template_id":1,"ext_json":"{\"extEnable\":true,\"extAppid\":\"wx503d72b955c48669\",\"pages\":[\"pages\\\/index\\\/index\",\"pages\\\/about\\\/about\"],}","user_version":"1.01","user_desc":"\u9648\u65ed\u4e1c \u5728 2018\/7\/15 \u4e0b\u53487:39:27 \u63d0\u4ea4\u4e0a\u4f20"} 使用 https://api.weixin.qq.com/wxa/commit?access_token=TOKEN 为已经授权的小程序设置模板。 上传的时候一直报错:{\"errcode\":47001,\"errmsg\":\"data format error hint: [LadLga04962358]\"} extAppid 填的是授权小程序的ID。 ============== 浏览论坛的提问,没有发现post的JSON有何错误。麻烦看一下。
2022-04-13