设备动态注册

Blade 未结 2 112
fxt
fxt 2026-06-18 15:32

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

1.  docker部署的单体项目

2. 

3.


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


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

BladeX-Links-Pro

四、请提供详细的错误堆栈信息,这很重要。

;

;
;
;
;
;
;
;
;

{

    ([] ) {
       = ;
       = ;
       = ;
       = (, , );
       ..println(+ );
    }

    (, , ) {
       = .();
       = + + + + + ;
       = .;
       = .sign(, );

       = RegisterReq();
       .setProductKey();
       .setUniqueNo();
       .setRandom();
       .setSign();
       .setSignMethod(.getMethod());
       .()
          .useSlf4jLog()
          .queryMap(.())
          .addHeader(, )
          .execute()
          .asValue(<<>>() {
          })
          .getData();
    }

}报错  
D:\devlop\jdk17\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:64493,suspend=y,server=n --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED -agentpath:C:\Users\Cxd\AppData\Local\Temp\idea_libasyncProfiler_dll_temp_folder2279\libasyncProfiler.dll=version,jfr,event=wall,interval=10ms,cstack=no,file=C:\Users\Cxd\IdeaSnapshots\DeviceRegisterTest_2026_06_18_153133.jfr,dbghelppath=C:\Users\Cxd\AppData\Local\Temp\idea_dbghelp_dll_temp_folder3\dbghelp.dll,log=C:\Users\Cxd\AppData\Local\Temp\DeviceRegisterTest_2026_06_18_153133.jfr.log.txt,logLevel=DEBUG -javaagent:C:\Users\Cxd\AppData\Local\JetBrains\IntelliJIdea2024.3\captureAgent\debugger-agent.jar -Dkotlinx.coroutines.debug.enable.creation.stack.trace=false -Ddebugger.agent.enable.coroutines=true -Dkotlinx.coroutines.debug.enable.flows.stack.trace=true -Dkotlinx.coroutines.debug.enable.mutable.state.flows.stack.trace=true -Dfile.encoding=UTF-8 @C:\Users\Cxd\AppData\Local\Temp\idea_arg_file1573108546 org.springblade.mqtt.broker.mqtt.DeviceRegisterTest
Connected to the target VM, address: '127.0.0.1:64493', transport: 'socket'
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
15:31:33.650 [main] INFO net.dreamlu.mica.http.HttpLogger -- --> POST http://10.1.1.120:8000/api/blade-iot/auth/register/device?uniqueNo=U1mo8BokA&random=TbkDHJG7&sign=e31754a2685964587d0c6cb0d807b0bb&tenantId&productKey=fph0fbqd6n7l&deviceName&signMethod=hmacmd5&deviceDesc
15:31:33.652 [main] INFO net.dreamlu.mica.http.HttpLogger -- Content-Length: 0
15:31:33.652 [main] INFO net.dreamlu.mica.http.HttpLogger -- Content-Type: application/x-www-form-urlencoded
15:31:33.652 [main] INFO net.dreamlu.mica.http.HttpLogger -- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0
15:31:33.652 [main] INFO net.dreamlu.mica.http.HttpLogger -- 
15:31:33.653 [main] INFO net.dreamlu.mica.http.HttpLogger -- 
15:31:33.653 [main] INFO net.dreamlu.mica.http.HttpLogger -- --> END POST (0-byte body)
15:31:33.730 [main] INFO net.dreamlu.mica.http.HttpLogger -- <-- 404 Not Found http://10.1.1.120:8000/api/blade-iot/auth/register/device?uniqueNo=U1mo8BokA&random=TbkDHJG7&sign=e31754a2685964587d0c6cb0d807b0bb&tenantId&productKey=fph0fbqd6n7l&deviceName&signMethod=hmacmd5&deviceDesc (77ms)
15:31:33.730 [main] INFO net.dreamlu.mica.http.HttpLogger -- Connection: keep-alive
15:31:33.730 [main] INFO net.dreamlu.mica.http.HttpLogger -- Transfer-Encoding: chunked
15:31:33.730 [main] INFO net.dreamlu.mica.http.HttpLogger -- Content-Type: application/json;charset=UTF-8
15:31:33.730 [main] INFO net.dreamlu.mica.http.HttpLogger -- Date: Thu, 18 Jun 2026 07:31:34 GMT
15:31:33.730 [main] INFO net.dreamlu.mica.http.HttpLogger -- 
15:31:33.730 [main] INFO net.dreamlu.mica.http.HttpLogger -- {"code":404,"success":false,"data":{},"msg":"No endpoint POST /api/blade-iot/auth/register/device."}
15:31:33.730 [main] INFO net.dreamlu.mica.http.HttpLogger -- <-- END HTTP (100-byte body)
设备1 RegisterResp(super=BaseDevice(productKey=null, deviceName=null), deviceSecret=null, mqttIp=null, mqttPort=1883)
Disconnected from the target VM, address: '127.0.0.1:64493', transport: 'socket'

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

 只改了 productKey,还有接口地址
2条回答
  •  admin
    admin (楼主)
    2026-06-18 15:35

    8000端口是gateway的端口么?如果是的话不需要/api前缀,把/api删掉

提交回复