Skip to content

FetchAllTopicList Error #1168

Open
Open
@fankane

Description

@fankane

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 成功

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions