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

Could not load config for namespace application-yaml from Apollo, please check whether the configs are released in Apollo! Return default value now! #4764

Closed
3 tasks done
jiangxiaoqiang opened this issue Mar 2, 2023 · 3 comments

Comments

@jiangxiaoqiang
Copy link

jiangxiaoqiang commented Mar 2, 2023

描述bug

无法指定Apollo使用yaml配置

复现

通过如下步骤可以复现:

  1. 新建application-yaml命名空间
  2. client切换配置到application-yaml
  3. 无法加载application-yaml配置

详细可以参考:https://stackoverflow.com/questions/75620006/could-not-load-config-for-namespace-application-yaml-from-apollo-please-check-w

期望

使用新建的yaml格式的配置

截图

image

额外的细节和日志

  • 版本:apolloconfig/apollo-configservice:1.8.2
  • 错误日志
  • 配置:见stack overflow
  • 平台和操作系统:Kubernetes,CentOS 7
@nobodyiam
Copy link
Member

In this case, the namespace should end with '.yaml', you may reference the sample for more information.

apollo.bootstrap.namespaces = application-yaml.yaml

@jiangxiaoqiang
Copy link
Author

In this case, the namespace should end with '.yaml', you may reference the sample for more information.

apollo.bootstrap.namespaces = application-yaml.yaml

thank you for your patient.

@jiangxiaoqiang
Copy link
Author

在spring-gateway项目里这样配置还是会出现此问题:

Could not load config for namespace application-yaml.yaml from Apollo, please check whether the configs are released in Apollo! Return default value now!

配置是:

apollo.bootstrap.enabled=true
apollo.bootstrap.eagerLoad.enabled = true
apollo.bootstrap.namespaces = application-yaml.yaml

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

2 participants