昨天还是正常的,今早上过来就不行了. hint:1629170565_236_b1943522c6053ca68943089ae0b4b9fd
1629170565_236_b1943522c6053ca68943089ae0b4b9fd
hint: [1629170565_236_b1943522c6053ca68943089ae0b4b9fd]
20210817 11:22:45[INFO]企微推送结果: {"errcode":40008,"errmsg":"Warning: wrong json format. invalid message type, hint: [1629170565_236_b1943522c6053ca68943089ae0b4b9fd], from ip: 39.98.117.192, more info at https://open.work.weixin.qq.com/devtool/query?e=40008"}
220210817 1120210817 11:22:45[INFO]企微推送结果: {"errcode":40008,"errmsg":"Warning: wrong json format. invalid message type, hint: [1629170565_236_b1943522c6053ca68943089ae0b4b9fd], from ip: 39.98.117.192, more info at https://open.work.weixin.qq.com/devtool/query?e=40008"}:22:45[INFO]企微推送结果: {"errcode":40008,"errmsg":"Warning: wrong json format. invalid message type, hint: [1629170565_236_b1943522c6053ca68943089ae0b4b9fd], from ip: 39.98.117.192, more info at https://open.work.weixin.qq.com/devtool/query?e=40008"}0210817 11:22:45[INFO]企微推送结果: {"errcode":40008,"errmsg":"Warning: wrong json format. invalid message type, hint: [1629170565_236_b1943522c6053ca68943089ae0b4b9fd], from ip: 39.98.117.192, more info at https://open.work.weixin.qq.com/devtool/query?e=40008"}
你好,前两天是拦截了非法的json请求,这里昨晚是上线优化了,不过机器人发消息的api接口后续将继续校验请求json的合法性,避免json不合法取错值
基本排查出来就是格式问题
首先\n 、\t此类转义字符出现就必定报错,需要替代为\\n、\\t等等
然后中括号内的最后一行键值对后面结束不能有逗号,否则也报错
官方的例子都是40008,这还怎么玩。。。。。。
碰到同样的问题,请求帮助。推送消息jason格式如下,但报40008错误
{
"touser": "oicjW6MuUyb-fu_NKbgc5TvGg",
"template_id": "IHebBtlPAKwRj3Amc2Ae9LoHSipHwZgf8vVjOzQX",
"data": {
"first": {
"value": "电流异常",
"color": "#173177"
},
"keyword1": {
"value": "车间",
"color": "#173177"
},
"keyword2": {
"value": "警告",
"color": "#173177"
},
"keyword3": {
"value": "能效比异常",
"color": "#173177"
},
"keyword4": {
"value": "2016-11-25",
"color": "#173177"
},
"remark": {
"value": "点击查看详情",
"color": "#173177"
}
}
}
+1
+1 ,我们的也 是,有些是用业推送业务的,求解答啊
+1
遇到同样的问题.......求官方回复
我也是,询问
通过curl推送消息,发现推送变量,变量内容不能多行,多行会报错,单行可以成功,希望能给你们思路