You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What operating system (Linux, Windows, …) and version?
mac
What did you do?
If possible, provide a recipe for reproducing the error.
code is:
service, err := client.GetService(vo.GetServiceParam{
ServiceName: config.GlobalConfig.ApplicationName,
})
for _, host := range service.Hosts {
var port = host.Port
if port == 0 {
return errors.New("port is zero")
}
}
What version of nacos-sdk-go are you using?
github.com/nacos-group/nacos-sdk-go/v2 v2.2.5
What version of nacos-sever are you using?
docker run --name nacos-quick -e MODE=standalone -p 8848:8848 -p 9848:9848 -d nacos/nacos-server:v2.2.0
What version of Go are you using (
go version
)?go version go1.22.2 darwin/arm64
What operating system (Linux, Windows, …) and version?
mac
What did you do?
If possible, provide a recipe for reproducing the error.
code is:
operation is: use the GoLand run testcase:
What did you expect to see?
port == 8080
What did you see instead?
port == 0
#743
The text was updated successfully, but these errors were encountered: