云函数代码主要是更新数据库,本地测试正常,数据库更新正常
data: record }) } |
云端测试就报错,实在搞不清哪里的问题:
{“errorCode”:1,“errorMessage”:“user code exception caught”,“stackTrace”:"errCode: -501001 resource system error | errMsg: envname field not exsit in url; "}
Error: errCode: -501001 resource system error | errMsg: envname field not exsit in url;
at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6389:28)
at Object.returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6441:16)
at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1672:23)
at Query.<anonymous> (/var/user/node_modules/wx-server-sdk/index.js:1773:41)
at step (/var/user/node_modules/tslib/tslib.js:136:27)
at Object.next (/var/user/node_modules/tslib/tslib.js:117:57)
at fulfilled (/var/user/node_modules/tslib/tslib.js:107:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)