云函数本地测试数据库更新数据时提示-501001
发布于 5 年前 作者 xiuyingqin 10822 次浏览 来自 官方Issues

Promise {[[PromiseStatus]]: “rejected”, [[PromiseValue]]: Error: errCode: -501001 resource system error | errMsg: read ECONNRESET;
    at new CloudSDKError (…}__proto__: Promise[[PromiseStatus]]: “rejected”[[PromiseValue]]: Error: errCode: -501001 resource system error | errMsg: read ECONNRESET;
    at new CloudSDKError (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\wx-server-sdk\index.js:6360:28)
    at Object.returnAsCloudSDKError (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\wx-server-sdk\index.js:6412:16)
    at Object.checkError (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\wx-server-sdk\index.js:1673:23)
    at DocumentReference.<anonymous> (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\wx-server-sdk\index.js:1571:41)
    at step (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\tslib\tslib.js:136:27)
    at Object.next (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\tslib\tslib.js:117:57)
    at fulfilled (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\tslib\tslib.js:107:62)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7) reason: Error: errCode: -501001 resource system error | errMsg: read ECONNRESET;
    at new CloudSDKError (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\wx-server-sdk\index.js:6360)
    at Object.returnAsCloudSDKError (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\wx-server-sdk\index.js:6412)
    at Object.checkError (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\wx-server-sdk\index.js:1673)
    at DocumentReference.<anonymous> (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\wx-server-sdk\index.js:1571)
    at step (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\tslib\tslib.js:136)
    at Object.next (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\tslib\tslib.js:117)
    at fulfilled (D:\work\uread_wxapp\cloudfunctions\update_feeds\node_modules\tslib\tslib.js:107)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188)

前两天也出现-501001的错误,后来又没问题了。今天修改点东西的时候发现又出现了。搜了一下大家也会频频出现这个问题,请问这个问题是为何出现,如何避免?如果上线后还是偶尔出现一下这种问题,很影响系统的稳定性。

回到顶部