您好,小程序订阅接口,前台发起,用户确认后,后台订阅的消息推送接口报错,具体如下:
前台:
wx.requestSubscribeMessage({
tmplIds: ['vqxKQCjhYofZFRxBZNYZZoChTu14EZ0JbiSYJirgXjE'],
success (res) {
})
后台:
2021-05-31 14:01:48.528 INFO 1567 --- [io-8081-exec-13] c.r.w.c.ApiWxMaPortalController :
接收微信请求:[msg_signature=[null], encrypt_type=[null], signature=[b364e430321b3e7a0cc847232b030c956eb66aa8], timestamp=[1622440908], nonce=[1949287113], requestBody=[
{"ToUserName":"gh_ce8****","FromUserName":"oqtot48RouJZoAaVJQLPcrR0-qoQ","CreateTime":1622440908,"MsgType":"event","Event":"subscribe_msg_popup_event","List":{"PopupScene":"0","SubscribeStatusString":"accept","TemplateId":"vqxKQCjhYofZFRxBZNYZZoChTu14EZ0JbiSYJirgXjE"}}
]
2021-05-31 14:01:48.530 INFO 1567 --- [eRouter-pool-26] c.r.w.common.config.WxMaConfiguration : 收到消息:{"ToUserName":"gh_ce81db0ffef2","FromUserName":"oqtot48RouJZoAaVJQLPcrR0-qoQ","CreateTime":1622440908,"MsgType":"event","Event":"subscribe_msg_popup_event"}
2021-05-31 14:01:48.649 ERROR 1567 --- [eRouter-pool-26] c.b.w.m.api.impl.BaseWxMaServiceImpl :
【请求地址】: https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=45__jeIZIknw6ER6DYz5nKGNzS0JdTGd74M8VvUHNSZl7mFNkFPMXc3JS8KQQXvRRi7fa7VVMK53bdRboyRLacOCH0kwUON0IXD7kGFPIds-J-RKRX776M4ROCekufLzfPlYLB3AtEuuCaSs0ZHCDIdAIAMNS
【请求参数】:{"touser":"oqtot48RouJZoAaVJQLPcrR0-qoQ","msgtype":"text","text":{"content":"收到信息为:{\"ToUserName\":\"gh_ce81db0ffef2\",\"FromUserName\":\"oqtot48RouJZoAaVJQLPcrR0-qoQ\",\"CreateTime\":1622440908,\"MsgType\":\"event\",\"Event\":\"subscribe_msg_popup_event\"}"}}
【错误信息】:错误代码:45015, 错误信息:回复时间超过限制,微信原始报文:{"errcode":45015,"errmsg":"response out of time limit or subscription is canceled rid: 60b47bcc-50269f75-219d19b9"}
2021-05-31 14:01:48.649 ERROR 1567 --- [eRouter-pool-26] m.c.w.common.util.LogExceptionHandler : Error happens
me.chanjar.weixin.common.error.WxErrorException: 错误代码:45015, 错误信息:回复时间超过限制,微信原始报文:{"errcode":45015,"errmsg":"response out of time limit or subscription is canceled rid: 60b47bcc-50269f75-219d19b9"}
at cn.binarywang.wx.miniapp.api.impl.BaseWxMaServiceImpl.executeInternal(BaseWxMaServiceImpl.java:275)
文本事件才能回复,订阅事件别处理就行了,多大点事