apache / dubbo-go

Go Implementation For Apache Dubbo .
https://dubbo.apache.org/
Apache License 2.0
4.67k stars 910 forks source link

dubbogo-cli show show zk detail err #2681

Open YarBor opened 1 month ago

YarBor commented 1 month ago

Issue description

at Dubbo-go-DOC

image

> git checkout main && go build . && ./dubbogo-cli version && ./dubbogo-cli show --r zookeeper --h 127.0.0.1:2181
之前的 HEAD 位置是 8f81c76d [3.1] cherry-pick ioutil replace to release-3.1 (#2597)
切换到分支 'main'
您的分支与上游分支 'origin/main' 一致。
dubbogo-cli Version: 1.0.0
2024/05/24 11:45:25 Connected to 127.0.0.1:2181
2024/05/24 11:45:25 Authenticated: id=72057861787746332, timeout=15000
2024/05/24 11:45:25 Re-submitting `0` credentials after reconnect
panic: URL.Parse(URL string{://dubbo-go-samples-configcenter-zookeeper-client}),  error{<nil>}

goroutine 1 [running]:
dubbo.apache.org/dubbo-go/v3/tools/dubbogo-cli/cmd.show(0xca8840, {0x8db482?, 0x4?, 0x8db46a?})
    /tmp/test/dubbo-go/tools/dubbogo-cli/cmd/show.go:86 +0x931
github.com/spf13/cobra.(*Command).execute(0xca8840, {0xc0001c8040, 0x4, 0x4})
    /home/wang/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:860 +0x684
github.com/spf13/cobra.(*Command).ExecuteC(0xca85c0)
    /home/wang/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x38d
github.com/spf13/cobra.(*Command).Execute(...)
    /home/wang/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902
dubbo.apache.org/dubbo-go/v3/tools/dubbogo-cli/cmd.Execute()
    /tmp/test/dubbo-go/tools/dubbogo-cli/cmd/root.go:46 +0x1a
main.main()
    /tmp/test/dubbo-go/tools/dubbogo-cli/main.go:28 +0xf
> git checkout v3.1.1 && go build . && ./dubbogo-cli version && ./dubbogo-cli show --r zookeeper --h 127.0.0.1:2181
M   tools/dubbogo-cli/go.mod
HEAD 目前位于 8f81c76d [3.1] cherry-pick ioutil replace to release-3.1 (#2597)
dubbogo-cli Version: 1.0.0
2024/05/24 11:44:42 Connected to 127.0.0.1:2181
2024/05/24 11:44:42 Authenticated: id=72057861787746331, timeout=15000
2024/05/24 11:44:42 Re-submitting `0` credentials after reconnect
panic: URL.Parse(URL string{://dubbo-go-samples-configcenter-zookeeper-client}),  error{<nil>}

goroutine 1 [running]:
dubbo.apache.org/dubbo-go/v3/dubbogo-cli/cmd.show(0xca8840, {0x8db482?, 0x4?, 0x8db46a?})
    /tmp/test/dubbo-go/tools/dubbogo-cli/cmd/show.go:86 +0x931
github.com/spf13/cobra.(*Command).execute(0xca8840, {0xc0001c8040, 0x4, 0x4})
    /home/wang/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:860 +0x684
github.com/spf13/cobra.(*Command).ExecuteC(0xca85c0)
    /home/wang/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x38d
github.com/spf13/cobra.(*Command).Execute(...)
    /home/wang/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902
dubbo.apache.org/dubbo-go/v3/dubbogo-cli/cmd.Execute()
    /tmp/test/dubbo-go/tools/dubbogo-cli/cmd/root.go:46 +0x1a
main.main()
    /tmp/test/dubbo-go/tools/dubbogo-cli/main.go:25 +0xf