question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Config client doesn't try next label if first one doesn't exist

See original GitHub issue

If I set spring.cloud.config.label=nonexistant,master then the RestClient receives a 404 on the ‘nonexistant’ label which is converted to an HttpClientResponseException. The code is checking for a 200 but should also catch the client exception.

See: https://github.com/spring-cloud/spring-cloud-config/blob/5f05eadbd4c0352515ede0d08427e14bd297d737/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java#L120

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ryanjbaxtercommented, Feb 22, 2022

Ah I see. You can open an issue and we can see what the community thinks about it

0reactions
ddesnacommented, Feb 20, 2022

Have you tried fail fast? https://docs.spring.io/spring-cloud-config/docs/3.1.1/reference/html/#config-client-fail-fast

Yep, but it is just in case your client app is not able to connect with config server.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Config Server - No such label: master - Stack Overflow
I don't know why but for me setting spring.cloud.config.server.git.default-label=master is working and before that, it was working well and good ...
Read more >
Retry for spring.config.import=configserver: declared in profile ...
Describe the bug. I'm trying to upgrade an spring boot/spring cloud config application to spring boot 2.4.2 and spring cloud 2020.0.1 to use ......
Read more >
Spring Cloud Config Server
Spring Cloud Config provides server and client-side support for externalized configuration in a distributed system. With the Config Server you have a ...
Read more >
Troubleshooting online endpoints deployment and scoring
Learn how to troubleshoot some common deployment and scoring errors with online endpoints.
Read more >
Troubleshooting PaperCut User Client Not Popping Up
good, skip to the next section. If you don't see the job recorded on either of those pages… then PaperCut doesn't know about...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found