fantiq commented on issue #15367:
URL: https://github.com/apache/dubbo/issues/15367#issuecomment-3101690015

   > Has this problem been solved? Thank you!
   
   HI @poazy , it may not be dubbo' bug. This may be caused by requesting an 
empty body. 
   
   you can use `curl`  request the 
[https://github.com/poazy/dubbo-rest-demo](https://github.com/poazy/dubbo-rest-demo)
 server.
   
   
   request  with json body  `{"data":123456}`
   
   ```
   curl -d '{"data":123456}' -H 'Content-Type: application/json' 
http://127.0.0.1:8099/com.poazy.dubbo.rest.demo.api.RestDemoService/queryPrice
   ```
   
   got
   
   ```
   {"code":200,"data":123456,"msg":"OK"}
   ```
   
   
   request with empty body ``
   
   ```
   curl -d '' -H 'Content-Type: application/json' 
http://127.0.0.1:8099/com.poazy.dubbo.rest.demo.api.RestDemoService/queryPrice
   ```
   
   got
   
   ```
   {"message":"Missing argument 'reqArgs' for method parameter of type [class 
com.poazy.dubbo.rest.demo.api.entity.DrdRQ]","status":"400"}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to