apache / apache/rocketmq-client-cpp

re-dev Cannot use accessKey, secretKey, accessChannel

Đang mở
#357 9 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
393
Fork
167
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.