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

此namespace从来没有发布过,Apollo客户端将获取不到配置并记录404日志信息,请及时发布。 #5079

Closed
LKLKenneth opened this issue Jan 24, 2024 · 8 comments
Labels

Comments

@LKLKenneth
Copy link

这个如果不去配置,或者发布namespace,日志一直报错,这个提示能否取消,如果报这个提示了,我们直接点发布能否处理和这个问题,是否会影响我们使用

Copy link

dosubot bot commented Jan 24, 2024

🤖

你好,@LKLKenneth!我是Dosu,一款能帮你解决问题,回答问题,甚至成为贡献者的机器人🤖。在等待人类维护者的同时,我会在这里帮助你。感谢你的耐心等待,我正在查看你的问题,很快会给你一个完整的答复。

@LKLKenneth
Copy link
Author

此namespace从来没有发布过,Apollo客户端将获取不到配置并记录404日志信息,请及时发布,报这个错会影响我们调用配置吗

Copy link

dosubot bot commented Jan 24, 2024

🤖

是的,如果你不配置或发布namespace,那么错误信息 "此namespace从来没有发布过,Apollo客户端将获取不到配置并记录404日志信息,请及时发布" 将会影响你的使用。这是因为只有在发布后,配置才会真正被应用程序使用。如果namespace没有发布,Apollo客户端将无法获取配置,这可能导致你的应用程序出现错误或意外的行为。

你可以通过发布namespace来解决这个问题。以下是操作步骤:

  1. 点击 "发布按钮"
    publish-entry

  2. 填写发布信息,然后点击发布
    publish-detail

配置成功发布后,应用程序可以通过Apollo客户端读取配置。如果你发现没有发布按钮,你可以向项目管理员申请授权。
来源:

配置Apollo中的namespace的具体过程包括以下步骤:

  1. 导航到namespace配置页面。这通常通过Apollo portal完成。

  2. 选择你是要创建新的namespace还是链接到现有的公共namespace。这是通过在表单中点击相应的按钮完成的。

  3. 如果你正在创建新的namespace,你需要指定它是公共的还是私有的。这是通过选择相应的单选按钮完成的。

  4. 如果你正在链接到现有的公共namespace,你需要选择你想要链接的集群。这是通过使用apolloclusterselector指令完成的。

  5. namespaceName输入字段中指定namespace的名称。

  6. 选择namespace的格式。这是通过从format下拉菜单中选择相应的选项完成的。

  7. 可选的,你可以给namespace添加评论。这是在comment文本区域中完成的。

  8. 提交表单以创建或链接namespace。

这是相关的代码:

<form class="form-horizontal" name="namespaceForm" valdr-type="AppNamespace"
    style="margin-top: 30px;" ng-show="step == 1" ng-submit="createNamespace()">
    <!-- Step 2 -->
    <button type="button" class="btn btn-default" ng-class="{active:type=='create'}"
        ng-click="switchType('create')">{{'Namespace.CreateNamespace' | translate }}
    </button>
    <button type="button" class="btn btn-default" ng-class="{active:type=='link'}"
        ng-click="switchType('link')">{{'Namespace.AssociationPublicNamespace' | translate }}
    </button>
    <!-- Step 3 -->
    <input type="radio" name="namespaceType" value="false" ng-value="false"
        ng-model="appNamespace.isPublic"> {{'Namespace.NamespaceType.Private' | translate }}
    <input type="radio" name="namespaceType" value="true" ng-value="true"
        ng-model="appNamespace.isPublic"> {{'Namespace.NamespaceType.Public' | translate }}
    <!-- Step 4 -->
    <apolloclusterselector apollo-app-id="appId" apollo-default-all-checked="true"
        apollo-select="collectSelectedClusters"></apolloclusterselector>
    <!-- Step 5 -->
    <input type="text" name="namespaceName" class="form-control"
        ng-model="appNamespace.name">
    <!-- Step 6 -->
    <select class="form-control" name="format" ng-model="appNamespace.format">
        <option value="properties">properties</option>
        <option value="xml">xml</option>
        <option value="json">json</option>
        <option value="yml">yml</option>
        <option value="yaml">yaml</option>
        <option value="txt">txt</option>
    </select>
    <!-- Step 7 -->
    <textarea class="form-control" rows="3" name="comment"
        ng-model="appNamespace.comment"></textarea>
    <!-- Step 8 -->
    <button type="submit" class="btn btn-primary"
        ng-disabled="(type == 'create' && namespaceForm.$invalid) || submitBtnDisabled">
        {{'Common.Submit' | translate }}
    </button>
</form>

请注意,这个过程假设你有创建或链接namespaces的必要权限。
来源:

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@LKLKenneth
Copy link
Author

一般都不会使用默认的application,而是自己创建,而且我得客户端也只监听自己创建的namespace,那么我不应该还要去首次发布不相关的application

@LKLKenneth
Copy link
Author

默认的application删除了,使用自己的还会一直报

@nobodyiam
Copy link
Member

页面上的提示没有关系的,如果没用到默认的 application namespace,可以不用关注。

Copy link

stale bot commented Feb 24, 2024

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 24, 2024
Copy link

stale bot commented Mar 3, 2024

This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@stale stale bot closed this as completed Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants