KilluaChen opened a new issue, #920:
URL: https://github.com/apache/rocketmq-client-go/issues/920

   ### 代码片段
   ```golang
   c, err := rocketmq.NewPushConsumer(
     consumer.WithGroupName("test-group"),
     
consumer.WithNsResolver(primitive.NewPassthroughResolver([]string{"rmq-cn-123456.cn-shanghai.rmq.aliyuncs.com:8080"})),
     consumer.WithCredentials(primitive.Credentials{
          AccessKey: "111",
          SecretKey: "222",
     }),
   )
   ```
   ### 运行报错:
   ```bash
   init consumer error: new Namesrv failed.: IP addr error
   ```
   ### 版本信息
   - RocketMQ 版本: 阿里云5.0
   - 客户端版本: 2.1.1
   - 操作系统: MacOS 12.5
   
   ### 现状
   > 目前是使用ping 解析出ip后,再进行配置,例如`ping 
rmq-cn-123456.cn-shanghai.rmq.aliyuncs.com`得到`10.1.2.3.4`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to