2026-09-22 11:16:12.945 5345-5531 ScramAuth com.msq.register D SCRAM client-first: n,n=msq,r=g9P5UnsFtSujnPITvgqm7fZa
2026-09-22 11:16:12.965 5345-5531 ScramAuth com.msq.register E SCRAM auth error: java.io.IOException: Connection reset by peer (Ask Gemini)
com.hivemq.client.mqtt.exceptions.ConnectionClosedException: java.io.IOException: Connection reset by peer
Caused by: java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:421)
at io.netty.buffer.UnpooledHeapByteBuf.setBytes(UnpooledHeapByteBuf.java:282)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:356)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:156)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:796)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:732)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:658)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:1007)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:919)
为什么,数据格式哪里错误?
看不出来,你发的什么格式?
n,n=msq,r=g9P5UnsFtSujnPITvgqm7fZa
就是这个,emqx 是5.8,mqttx是1.13可以连接,然后1.13的mqttx无法连接emqx.5.0.26版本的,怎么回事?每个版本的认证都不一样吗?
hivemq是1.4版本,就是连接不上,但是能连上emqx5.0.26的
已解决
牛,啥原因啊