Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FetchAllTopicList Error #1168

Open
fankane opened this issue Sep 19, 2024 · 0 comments
Open

FetchAllTopicList Error #1168

fankane opened this issue Sep 19, 2024 · 0 comments

Comments

@fankane
Copy link

fankane commented Sep 19, 2024

Version:v2.1.2

	a, err := admin.NewAdmin(admin.WithResolver(primitive.NewPassthroughResolver(nameServerAddrs)))
	if err != nil {
		return nil, fmt.Errorf("new admin err:%s, addr:%v", err, nameServerAddrs)
	}
        res, err := a.FetchAllTopicList(ctx) //会报错
	if err != nil {
		return nil, err
	}

        a.CreateTopic(ctx, opts...)  // 成功

当 namseServerAddrs 是 []string{ "http://docker.svc.cluster.local:9876" } 时,FetchAllTopicList 报错, CreateTopic 成功
当 namseServerAddrs 是 []string{ "127.0.0.1:9876" } 时,FetchAllTopicList 成功,CreateTopic 成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant