dongjiang1989 opened a new issue, #2980:
URL: https://github.com/apache/dubbo-go/issues/2980

   ### ✅ 验证清单
   
   - [x] 🔍 我已经搜索过 [现有 
Issues](https://github.com/apache/dubbo-go/issues),确信这不是重复问题
   
   ### 🚀 Go 版本
   
   1.24.2
   
   ### 📦 Dubbo-go 版本
   
   v3.2 和 v3.3
   
   ### 🖥️ 服务端配置
   
   _No response_
   
   ### 💻 客户端配置
   
   _No response_
   
   ### 🌐 协议配置
   
   _No response_
   
   ### 📋 注册中心配置
   
   _No response_
   
   ### 💾 操作系统
   
   🐧 Linux
   
   ### 📝 Bug 描述
   
   当address包含多个地址通过逗号分隔,当分隔符号中有空格,服务启动crash
   ```
   metadata-report:
       protocol: zookeeper
       address: 172.29.235.70:31086 , 172.29.235.89:31086, 172.29.235.57:31086, 
 
     logger:
       lumberjack-config:
         filename: /data/client.log
         maxSize: 1
         maxAge: 3
         maxBackups: 5
         localTime: true
         compress: false
     registries:
       demoZK:
         protocol: zookeeper
         timeout: 3s
         address: 172.29.235.70:31086 , 172.29.235.89:31086,     
172.29.235.57:31086
         group: myGroup
         registry-type: interface
   ```
   
   ### 🔄 重现步骤
   
   启动dubbo-go服务
   
   DUBBO_GO_CONFIG_PATH=./conf/dubbogo.yml ./binary/xxxx
   
   ### ✅ 预期行为
   
   没有崩溃,支持trimSpace
   
   ### ❌ 实际行为
   
   出现问题:
   ```
   2025-08-20 13:31:16  ERROR   metadata/options.go:157 metadata report create 
error Invalid MetadataReport Config.
   panic: Invalid MetadataReport Config.
   
   goroutine 1 [running]:
   main.main()
        
/Users/jiangdong/Documents/go/src/github.com/dongjiang1989/dubbo-go-server/cmd/client/main.go:23
 +0x1fc
   ```
   
   或者
   ```
   2025-08-20 13:34:08  ERROR   config/consumer_config.go:173   No provider 
available of the service com.apache.dubbo.sample.node.GetNodeInfo.please check 
configuration.
   panic: No provider available of the service 
com.apache.dubbo.sample.node.GetNodeInfo.please check configuration.
   
   goroutine 1 [running]:
   dubbo.apache.org/dubbo-go/v3/config.(*ConsumerConfig).Load(0x140005f8a50)
        
/Users/jiangdong/Documents/go/src/github.com/dongjiang1989/dubbo-go-server/vendor/dubbo.apache.org/dubbo-go/v3/config/consumer_config.go:174
 +0x728
   dubbo.apache.org/dubbo-go/v3/config.(*RootConfig).Start.func1()
        
/Users/jiangdong/Documents/go/src/github.com/dongjiang1989/dubbo-go-server/vendor/dubbo.apache.org/dubbo-go/v3/config/root_config.go:205
 +0x30
   sync.(*Once).doSlow(0xb0?, 0x10454fa80?)
        /opt/homebrew/Cellar/go/1.24.2/libexec/src/sync/once.go:78 +0xf0
   sync.(*Once).Do(...)
        /opt/homebrew/Cellar/go/1.24.2/libexec/src/sync/once.go:69
   dubbo.apache.org/dubbo-go/v3/config.(*RootConfig).Start(0x1043b70a0?)
        
/Users/jiangdong/Documents/go/src/github.com/dongjiang1989/dubbo-go-server/vendor/dubbo.apache.org/dubbo-go/v3/config/root_config.go:203
 +0x48
   dubbo.apache.org/dubbo-go/v3/config.(*RootConfig).Init(0x140005f8b00)
        
/Users/jiangdong/Documents/go/src/github.com/dongjiang1989/dubbo-go-server/vendor/dubbo.apache.org/dubbo-go/v3/config/root_config.go:198
 +0x458
   dubbo.apache.org/dubbo-go/v3/config.Load({0x0?, 0x140000021c0?, 
0x14000063f38?})
        
/Users/jiangdong/Documents/go/src/github.com/dongjiang1989/dubbo-go-server/vendor/dubbo.apache.org/dubbo-go/v3/config/config_loader.go:58
 +0xac
   main.main()
        
/Users/jiangdong/Documents/go/src/github.com/dongjiang1989/dubbo-go-server/cmd/client/main.go:22
 +0x30
   ```
   
   ### 💡 可能的解决方案
   
   _No response_


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to