收藏
回答

云函数接收消息推送不能发送推送问题?

在云后台的全局设置中添加了一个云函数作为消息推送函数,事件类型是user_enter_tempsession,配置如下图:



但是 在进入客服消息的时候触发云函数,但是后台日志显示调用出错,错误如下:

日志内容 Request ID: ab03a697-fc80-11e9-88ad-525400697544
执行时间: 223.5ms内存使用: 22.77 MB
返回结果
{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"errCode: 45015  | errMsg: openapi.customerServiceMessage.send:fail response out of time limit or subscription is canceled hint: [MObbNA05168672]"}
日志
START RequestId: ab03a697-fc80-11e9-88ad-525400697544
Event RequestId: ab03a697-fc80-11e9-88ad-525400697544
Error: errCode: 45015  | errMsg: openapi.customerServiceMessage.send:fail response out of time limit or subscription is canceled hint: [MObbNA05168672]
at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6366:28)
at /var/user/node_modules/wx-server-sdk/index.js:2529:43
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)

END RequestId: ab03a697-fc80-11e9-88ad-525400697544
Report RequestId: ab03a697-fc80-11e9-88ad-525400697544 Duration:223ms Memory:256MB MaxMemoryUsed:22.773438MB
请问这种错误如何处理

回答关注问题邀请回答
收藏

5 个回答

登录 后发表内容
问题标签