rocketmq-client-cpp icon indicating copy to clipboard operation
rocketmq-client-cpp copied to clipboard

re-dev Cannot use accessKey, secretKey, accessChannel

Open lirong-Lee opened this issue 4 years ago • 9 comments

I use the following code to add accessKey, secretKey, accessChannel

auto rpcHook = std::make_shared<rocketmq::ClientRPCHook>(rocketmq::SessionCredentials("LTAI4GGqhTNXtKsLtoKU8FMq", "xxxxxxxxxxxx", "ALIYUN"));
m_Producer.setRPCHook(rpcHook);

Connecting to Alibaba Cloud's rocketmq, the log reports an error: "No topic route info in name server for the topic:"

With the same parameters, I can send data normally using version 2.2.0; Use code:

m_Producer.setSessionCredentials("LTAI4GGqhTNXtKsLtoKU8FMq", "xxxxxxxxxxxx", "ALIYUN");

rocektmq-dev.log rocketmq-client-cpp-2.2.0.log

lirong-Lee avatar Jun 28 '21 05:06 lirong-Lee

@lirong-Lee The support of namespace is not ok, it causes this issue.

ifplusor avatar Jun 28 '21 06:06 ifplusor

@ifplusor What is the specific problem? How do i use

lirong-Lee avatar Jun 28 '21 06:06 lirong-Lee

@ShannonDing ping

vongosling avatar Jun 28 '21 07:06 vongosling

@lirong-Lee I will fix this issue in the next few weeks.

ifplusor avatar Jun 29 '21 08:06 ifplusor

@ifplusor Is there a chance to support this feature now

lirong-Lee avatar Nov 04 '21 05:11 lirong-Lee

@ifplusor Is there a chance to support this feature now

Unfortunately, I have been busy with work in the past few months and have no time to fix this issue.

ifplusor avatar Nov 04 '21 05:11 ifplusor

@lirong-Lee I'm so sorry, but could you do this by yourself and commit a PR? I will provide support as much as possible.

ifplusor avatar Nov 11 '21 06:11 ifplusor

@ifplusor Can you tell me about which module to do this thing. I refer to the java version and master version to change it to see

lirong-Lee avatar Nov 11 '21 06:11 lirong-Lee

@lirong-Lee As I say before, sdk do not process namespace for topic/group, you can see https://github.com/apache/rocketmq/blob/df4e98855d461d85e9c4ed43add1b12a58bca7b6/common/src/main/java/org/apache/rocketmq/common/protocol/NamespaceUtil.java#L71 And you can do this work on my repo, there are a lot of jobs about refactor that are not merged upstream.

ifplusor avatar Nov 11 '21 07:11 ifplusor