使用服务端通用消息下发失败,响应103

Blade 未结 3 247
wisedata
wisedata 2025-05-09 15:44
悬赏:5

一、该问题的重现步骤是什么?

1.

7.1 服务端通用消息下发

  • 请求路径https://${域名}/blade-broker/device/mqtt/publish

  • 请求方式:POST

  • 接口描述:向指定设备发送MQTT消息

2. 调用的参数{"productKey":"P63B0nIFxrsm","deviceName":"Device-AWRQ","topic":"/blade/sys/P63B0nIFxrsm/Device-AWRQ/thing/service/switch_off","payload":{"id":"6e5cdf69-d7aa-43d1-9daf-f15540e3ce4e","version":"1.0","method":"thing.service.switch_off","params":null}}

Snipaste_2025-05-09_15-43-40.png

会响应只有一个code: 103

二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。
以下是bladex-boker容器内的报错

2025-05-09 15:32:38.506 ERROR 1 --- [   tio-worker-3] n.d.i.m.c.server.MqttServerAioListener   : Mqtt server close clientId:Device-AWRQ, remark:读数据时发生异常: java.io.IOException isRemove:true error:Connection reset

2025-05-09 15:32:38.506  INFO 1 --- [   tio-worker-3] o.s.i.b.l.l.MqttConnectStatusListener    : Mqtt clientId:Device-AWRQ username:Device-AWRQ&P63B0nIFxrsm offline reason:读数据时发生异常: java.io.IOException.

2025-05-09 15:32:38.506  INFO 1 --- [   tio-worker-3] org.tio.core.task.CloseRunnable          : TioServerConfig [name=BladeX-Mqtt-Server], server:0.0.0.0:1883, client:61.142.114.74:12693 准备关闭连接, isNeedRemove:true, 读数据时发生异常: java.io.IOException

2025-05-09 15:32:38.506  INFO 1 --- [   tio-worker-3] org.tio.core.ChannelContext              : 关闭前server:0.0.0.0:1883, client:61.142.114.74:12693, 关闭后server:0.0.0.0:1883, client:$UNKNOWN:9577

2025-05-09 15:32:38.958  INFO 1 --- [pool-4-thread-1] o.s.core.mp.plugins.SqlLogInterceptor    : 

五、若有更多详细信息,请在下面提供。

3条回答
  •  平淡
    平淡 (楼主)
    2025-05-12 15:21

    把请求地址的端口换成broker服务的端口试试呢

代码语言
提交回复