apache / rocketmq-client-python

Apache RocketMQ python client
https://rocketmq.apache.org/
Apache License 2.0
277 stars 95 forks source link

Crash happens after running python producer.py #106

Closed lipeng28 closed 3 years ago

lipeng28 commented 3 years ago

Hi There

When I run 'python producer.py' I got the following error, do you have any ideas why it happens?

Traceback (most recent call last): File "producer.py", line 11, in ret = producer.send_sync(msg) File "/home/lipeng/.pyenv/versions/3.7.2/lib/python3.7/site-packages/rocketmq/client.py", line 210, in send_sync ffi_check(dll.SendMessageSync(self._handle, msg, ctypes.pointer(c_result))) File "/home/lipeng/.pyenv/versions/3.7.2/lib/python3.7/site-packages/rocketmq/exceptions.py", line 44, in ffi_check raise exc_cls(msg) rocketmq.exceptions.ProducerSendSyncFailed: No route info of this topic: abc-topic,error:-1,in file rocketmq-client-cpp/src/producer/DefaultMQProducerImpl.cpp line:418

Thanks Peng

ifplusor commented 3 years ago

link apache/rocketmq-client-cpp#325 apache/rocketmq-client-cpp#346

lipeng28 commented 3 years ago

I resolved the issue through adding topic into the broker, I used the python client.

ruojiruoji commented 1 year ago

I resolved the issue through adding topic into the broker, I used the python client.

Hi, isn't the topic automatically created in the broker when sending the message from the producer? Why do you need to manually add the topic into the broker? Thanks