问题描述
规则引擎配置主动作和备选动作(均配置为webhook动作)当主动作执行http结果返回401,备选动作并没有被调用。
环境信息
- EMQ X 版本:4.2.8
- 操作系统及版本:centos 7
- 其他
相应的配置文件内容
详细日志
2021-04-06 23:56:09.917 [warning] <<"C43480378_16_01">>@192.168.2.253:55001 [WebHook Action] HTTP request failed with status code: 401
相关截图
这个跟 webhook 无关,我简单本地测试一下确实存在 你可以用这个代码测试,如果有问题提一个 Issues
require('http').createServer((req, res) => {
let c = ''
req.on('data', (d) => {
c += d
})
req.on('end', () => {
console.log(c.toString())
})
res.statusCode = 401
res.end('ok')
}).listen(process.env.PORT || '8080', () => {
console.log(`Listen on ${process.env.PORT || '8080'}`)
})
Ming
6