云函数接收消息推送不能发送推送问题?
发布于 4 年前 作者 taomao 11191 次浏览 来自 官方Issues

在云后台的全局设置中添加了一个云函数作为消息推送函数,事件类型是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


请问这种错误如何处理

2 回复

一个月之前这样设置时进入客服会话时可以自动触发发送lik类型的消息的,也没有出现这个错误,现在却提示这个错误了

response out of time limit or subscription is canceled

解决这2个问题就行

回到顶部