环境信息
- EMQX 版本: 4.4.7
- 操作系统及版本: CentOS 7.4.1708
- 其他
问题描述
设备发送消息到EMQ,会报Exhook warning相关错误
想请问一下大佬们,这个错误是什么意思?为什么会出现该错误?谢谢
设备发送消息到EMQ,会报Exhook warning相关错误
想请问一下大佬们,这个错误是什么意思?为什么会出现该错误?谢谢
你的类型是想让他STOP_AND_RETURN 但是你的value里面没有填message。
message ValuedResponse {
// The responsed value type
// - contiune: Use the responsed value and execute the next hook
// - ignore: Ignore the responsed value
// - stop_and_return: Use the responsed value and stop the chain executing
enum ResponsedType {
CONTINUE = 0;
IGNORE = 1;
STOP_AND_RETURN = 2;
}
ResponsedType type = 1;
oneof value {
// Boolean result, used on the 'client.authenticate', 'client.check_acl' hooks
bool bool_result = 3;
// Message result, used on the 'message.*' hooks
Message message = 4;
}
}
看那个one_of ,要有个message或boolean的值,日志里面你什么都没给就匹配不上的。