phpcyy opened a new issue, #3155: URL: https://github.com/apache/dubbo-go/issues/3155
### ✅ 验证清单 - [x] 🔍 我已经搜索过 [现有 Issues](https://github.com/apache/dubbo-go/issues),确信这不是重复问题 ### 🚀 Go 版本 go1.25.5 ### 📦 Dubbo-go 版本 v3.3.1 ### 🖥️ 服务端配置 _No response_ ### 💻 客户端配置 _No response_ ### 🌐 协议配置 triple, dubbo ### 📋 注册中心配置 _No response_ ### 💾 操作系统 🍎 macOS ### 📝 Bug 描述 在使用 getty_server 且未使用 tls 的情况下,服务发生了 tls 相关的报错。 ### 🔄 重现步骤 服务端代码: ``` func main() { ins, err := dubbo.NewInstance( dubbo.WithName("hello.GreetService"), dubbo.WithMetadataServiceProtocol("tri"), dubbo.WithProtocol( protocol.WithDubbo(), protocol.WithPort(20003), ), ) if err != nil { panic(err) } srv, err := ins.NewServer() if err != nil { panic(err) } err = hello.RegisterGreetServiceHandler(srv, &Impl{}, server.WithParam("servant", "Webnoveli.hello.GreetService")) if err != nil { panic(err) } if err := srv.Serve(); err != nil { panic(err) } } ``` 启动时必然报错 `ERROR [email protected]/server.go:202 tls.LoadX509KeyPair(certs{}, privateKey{}) = err:open : no such file or directory github.com/apache/dubbo-getty.(*ServerTlsConfigBuilder).BuildTlsConfig`。 ### ✅ 预期行为 服务正常启动,无报错 ### ❌ 实际行为 发生报错 `ERROR [email protected]/server.go:202 tls.LoadX509KeyPair(certs{}, privateKey{}) = err:open : no such file or directory github.com/apache/dubbo-getty.(*ServerTlsConfigBuilder).BuildTlsConfig`。 ### 💡 可能的解决方案 修改 getty_server 的 tls 判断逻辑。 -- 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]
