Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 当读队列1,写队列2时,推送报错:The value of "max" is out of range. #866

Open
3 tasks done
Jamlee opened this issue Nov 12, 2024 · 0 comments
Open
3 tasks done
Labels
type/bug Something isn't working

Comments

@Jamlee
Copy link

Jamlee commented Nov 12, 2024

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • 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

image

Steps to Reproduce

创建一个下图的话题即可
image

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

@Jamlee Jamlee added the type/bug Something isn't working label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant