{“errorCode”:1,“errorMessage”:“user code exception caught”,“stackTrace”:“errCode: -1 unknown error | errMsg: collection.aggregate:fail Error: ESOCKETTIMEDOUT; at collection.aggregate api; \nError: errCode: -1 unknown error | errMsg: collection.aggregate:fail Error: ESOCKETTIMEDOUT; at collection.aggregate api; \n at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6398:28)\n at returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6450:16)\n at Object.returnAsFinalCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6464:13)\n at Aggregate.\u003canonymous\u003e (/var/user/node_modules/wx-server-sdk/index.js:1367:40)\n at step (/var/user/node_modules/tslib/tslib.js:139:27)\n at Object.throw (/var/user/node_modules/tslib/tslib.js:120:57)\n at rejected (/var/user/node_modules/tslib/tslib.js:111:69)\n at \u003canonymous\u003e\n at process._tickCallback (internal/process/next_tick.js:188:7)”}
在递归里面连续执行云函数,有时可以有时失败,怎么解决呢?