apache / apache/rocketmq-client-cpp

re-dev Cannot use accessKey, secretKey, accessChannel

Open
#357 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
393
Forks
167
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.