云函数中 wx-sever-sdk 报错?

发布于 8 年前作者 liwan10675 次浏览最后编辑 8 年前来自 issues

START RequestId: 84b52f43-6fd8-11ea-986e-525400090c2c

Event RequestId: 84b52f43-6fd8-11ea-986e-525400090c2c

2020-03-27T03:10:31.845Z 07c528f8-2791-4d86-95a2-4fd13aa14e24 Database operation database.addDocument is longer than 3s. Please check query performance and your network environment.

2020-03-27T03:10:31.846Z 07c528f8-2791-4d86-95a2-4fd13aa14e24 logapi { Error: errCode: -501001 resource system error | errMsg: collection.add:fail ESOCKETTIMEDOUT; at collection.add 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:1198:32)

    at <anonymous>

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

  errCode: -501001,

  errMsg: 'collection.add:fail ESOCKETTIMEDOUT; at collection.add api; ' }

1 回复
xiuyingdeng
xiuyingdeng1 楼6 年前

collection.add 出错.