Jamlee opened a new issue, #866:
URL: https://github.com/apache/rocketmq-clients/issues/866

   ### Before Creating the Bug Report
   
   - [X] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq-clients/discussions).
   
   - [X] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq-clients/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq-clients/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [X] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Programming Language of the Client
   
   Node.js
   
   ### Runtime Platform Environment
   
   Mac M3
   
   ### RocketMQ Version of the Client/Server
   
   rocketserver: 5.1.3
   client: 1.0.0 
   
   ### Run or Compiler Version
   
   node18
   
   ### Describe the Bug
   
   是因为这里
   
![image](https://github.com/user-attachments/assets/e2a006b9-815e-4c40-9be0-eb6f1e7a5b22)
   
   
![image](https://github.com/user-attachments/assets/76c143fa-8789-4ec3-be18-5cfdfc7f1b35)
   
   
   ### Steps to Reproduce
   
   创建一个下图的话题即可
   
![image](https://github.com/user-attachments/assets/76c143fa-8789-4ec3-be18-5cfdfc7f1b35)
   
   
   ### What Did You Expect to See?
   
   可以推送成功
   
   ### What Did You See Instead?
   
   ```
   Error sending message: RangeError [ERR_OUT_OF_RANGE]: The value of "max" is 
out of range. It must be greater than the value of "min" (0). Received 0
       at new NodeError (node:internal/errors:405:5)
       at randomInt (node:internal/crypto/random:233:11)
       at new PublishingLoadBalancer 
(/Users/jamlee/Project/tmp/ws/node_modules/rocketmq-client-nodejs/dist/producer/PublishingLoadBalancer.js:30:73)
       at #updatePublishingLoadBalancer 
(/Users/jamlee/Project/tmp/ws/node_modules/rocketmq-client-nodejs/dist/producer/Producer.js:227:28)
       at #getPublishingLoadBalancer 
(/Users/jamlee/Project/tmp/ws/node_modules/rocketmq-client-nodejs/dist/producer/Producer.js:217:62)
       at process.processTicksAndRejections 
(node:internal/process/task_queues:95:5)
       at async #send 
(/Users/jamlee/Project/tmp/ws/node_modules/rocketmq-client-nodejs/dist/producer/Producer.js:142:30)
       at async Producer.send 
(/Users/jamlee/Project/tmp/ws/node_modules/rocketmq-client-nodejs/dist/producer/Producer.js:108:34)
       at async file:///Users/jamlee/Project/tmp/ws/r.mjs:17:25 {
     code: 'ERR_OUT_OF_RANGE'
   }
   ```
   
   ### Additional Context
   
   _No response_


-- 
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: commits-unsubscr...@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to