错误报告
环境
- EMQX 版本:5.0.11
- 操作系统版本:
重现此问题的步骤
mqtt的IOS客户端多次断开连接之后,会报这个错误,我们开启了mqtt的认证,快速操作断开和连接mqtt大概5次左右会出现
登录服务连接Error Domain=MQTT Code=5 “MQTT CONNACK: not authorized” UserInfo={NSLocalizedDescription=MQTT CONNACK: not authorized}
2023-03-03 10:42:02.910945+0800 [2302:927881] [LoginManager sharedManager] login error:Error Domain=MQTT Code=5 “MQTT CONNACK: not authorized” UserInfo={NSLocalizedDescription=MQTT CONNACK: not authorized}
2023-03-03 10:42:02.919091+0800 [2302:927881] [SDKLOG][LoggerManager.m][301] 方法调用者:
1 0x000000010170c4dc __25-[LoginManager logout]_block_invoke + 128
日志内容:
登录服务断开成功
2023-03-03 10:42:03.397285+0800 [2302:927881] loginMQTTWithAuthServiceWithResultBlock
2023-03-03 10:42:03.397735+0800 [2302:927881] loginMQTTServiceWithLineId lineSGId:1319bd5573c64330af8bf1c26c3631bc reg:<EZSaaSConferenceRegModel: 0x28200b4c0>
2023-03-03 10:42:03.398005+0800 [2302:927881] loginMQTTWithAuthServiceWithResultBlock 1:f67d15f677794d198c5da365ba22ff36 2:
2023-03-03 10:42:03.398235+0800 [2302:927881] [LoginManager sharedManager] token: mqtt_address:47.99.169.94 mqtt_port:1883 server_id:0d3f1dda862f42b285ed58c5dde6d837
2023-03-03 10:42:03.462892+0800 [2302:927881] [SDKLOG][LoggerManager.m][301] 方法调用者:
1 0x000000010170c7b8 __32-[LoginManager servicConnect]_block_invoke + 128