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

按照官网文档无法正常收发消息,报错No topic route info in name server for the topic #8009

Open
1 of 2 tasks
cpupg opened this issue Apr 9, 2024 · 4 comments

Comments

@cpupg
Copy link

cpupg commented Apr 9, 2024

Search before creation

  • I had searched in the issues and found no similar issues.

Documentation Related

按官方文档操作无法收发消息,消费端启动后报错在管理端查看消息详情显示No topic route info in name server for the topic,具体可以查看讨论

官网文档里的使用工具测试收发是消费者生产者,这两个代码拉到本地可以正常收发,且不需要提前创建主题。使用Producer.java创建的主题,用sdk可以正常收发,但是在管理端和命令行创建的主题无法使用sdk收发消息,报错No topic route info in name server for the topic

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@cpupg
Copy link
Author

cpupg commented Apr 9, 2024

我怀疑官网使用sdk收发消息的代码压根就没有测试,或者只能在特定条件下通过测试。写代码这么多年第一次碰到抄文档跑不动hello world的产品。

图片

@memorizeDreamer
Copy link

要改两行代码才能跑起来,要把注释去掉
image
image

@cpupg
Copy link
Author

cpupg commented Apr 16, 2024

要改两行代码才能跑起来,要把注释去掉 image image

图片里不是sdk里的,用sdk里的代码发不出去,并且不能没有方法设置namesrv。

@cpupg
Copy link
Author

cpupg commented Apr 16, 2024

要改两行代码才能跑起来,要把注释去掉 image image

#8008 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants