apache / apache/rocketmq-client-cpp

re-dev Cannot use accessKey, secretKey, accessChannel

未关闭
#357 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
393
派生
167
PR 合并指标
30 天内没有已合并 PR

描述

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

```
auto rpcHook = std::make_shared(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](https://github.com/apache/rocketmq-client-cpp/files/6723746/rocektmq-dev.log)
[rocketmq-client-cpp-2.2.0.log](https://github.com/apache/rocketmq-client-cpp/files/6723747/rocketmq-client-cpp-2.2.0.log)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。