apache / apache/rocketmq-client-cpp
re-dev Cannot use accessKey, secretKey, accessChannel
- Langage dominant
- C++
- Étoiles
- 393
- Forks
- 167
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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)
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.