apache / apache/rocketmq-client-cpp
re-dev Cannot use accessKey, secretKey, accessChannel
- Lingua principale
- C++
- Stelle
- 393
- Fork
- 167
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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)
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.