spring-cloud / spring-cloud/spring-cloud-bus

Spring bus doesn't update

Open
#275 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
Dominant language
Java
Stars
445
Forks
246
Avg merge
16h 25m
Merged PRs (30d)
5

Description

Hi everyone!

Application name

spring.application.name=cakctus-gateway

Server port

server.port=8083

Spring config

spring.config.import=optional:configserver:http://ip:8888

spring.cloud.config.discovery.enabled=true
spring.cloud.config.discovery.service-id=CAKCTUS-CONFIG
spring.profiles.active=default

spring.main.web-application-type=reactive

When i use this config works fine,
if u use spring.config.import=optional:configserver:CAKCTUS-CONFIG instead spring.config.import=optional:configserver:http://ip:8888 and make curl -H"content-type: application/json" -d{} http://ip:8083/actuator/refresh - spring bus doesn't update

2024-08-16T11:28:13.668+03:00 INFO 19320 --- [cakctus-gateway] [oundedElastic-6] o.s.c.c.c.ConfigServerConfigDataLoader : Fetching config from server at : CAKCTUS-CONFIG
2024-08-16T11:28:13.669+03:00 WARN 19320 --- [cakctus-gateway] [oundedElastic-6] o.s.c.c.c.ConfigServerConfigDataLoader : Could not locate PropertySource ([ConfigServerConfigDataResource@27876359 uris = array['CAKCTUS-CONFIG'], optional = true, profiles = 'default']): URI
is not absolute

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the configuration snippets and the ConfigServerConfigDataLoader warning showing that CAKCTUS-CONFIG is not an absolute URI. Reproduce the setup with discovery-based spring.config.import and the actuator refresh request, then compare it with the direct HTTP configuration. Done means the discovery-based configuration refresh works without the URI error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.