Skip to content

Spring Cloud Consul config watch keeps generating warning messages #950

@bryanxtong

Description

@bryanxtong

Describe the bug
Spring Cloud Consul config 5.0.0 keeps giving us warnings messages when enabling config watches for configuration, and the config data can be found with config/application/data(data is the key).

[
{
"key": "config/",
"flags": 0,
"value": ""
},
{
"key": "config/application/",
"flags": 0,
"value": ""
},
{
"key": "config/application/data",
"flags": 0,
"value": "bG9nZ2luZzoKICBsZXZlbDoKICAgIG9yZy5zcHJpbmdmcmFtZXdvcmsuY29yZS5lbnY6IERFQlVH"
},
{
"key": "config/gateway/",
"flags": 0,
"value": ""
},
{
"key": "config/gateway/data",
"flags": 0,
"value": ""
}
]

Sample

gateway.zip

The logs are as below. and if set fail fast, It will produce errors. and actually, we had provided the config items in consul KV.

2026-01-26T18:44:20.470+08:00 WARN 36468 --- [gateway] [TaskScheduler-1] o.s.cloud.consul.config.ConfigWatch : Error querying consul Key/Values for context 'config/gateway/'. Message: I/O error on GET request for "http://localhost:8500/v1/kv/config/gateway/": null
2026-01-26T18:44:30.475+08:00 WARN 36468 --- [gateway] [ctor-http-nio-5] r.netty.http.client.HttpClientConnect : [74757339-1, L:/127.0.0.1:62403 - R:localhost/127.0.0.1:8500] The connection observed an error

io.netty.handler.timeout.ReadTimeoutException

2026-01-26T18:44:30.475+08:00 WARN 36468 --- [gateway] [TaskScheduler-1] o.s.cloud.consul.config.ConfigWatch : Error querying consul Key/Values for context 'config/application/'. Message: I/O error on GET request for "http://localhost:8500/v1/kv/config/application/": null
2026-01-26T18:45:10.488+08:00 WARN 36468 --- [gateway] [ctor-http-nio-7] r.netty.http.client.HttpClientConnect : [61d86986-1, L:/127.0.0.1:62448 - R:localhost/127.0.0.1:8500] The connection observed an error

io.netty.handler.timeout.ReadTimeoutException

2026-01-26T18:45:10.489+08:00 WARN 36468 --- [gateway] [TaskScheduler-1] o.s.cloud.consul.config.ConfigWatch : Error querying consul Key/Values for context 'config/gateway/'. Message: I/O error on GET request for "http://localhost:8500/v1/kv/config/gateway/": null
2026-01-26T18:45:20.504+08:00 WARN 36468 --- [gateway] [ctor-http-nio-2] r.netty.http.client.HttpClientConnect : [df3e3ad3-25, L:/127.0.0.1:62388 - R:localhost/127.0.0.1:8500] The connection observed an error

io.netty.handler.timeout.ReadTimeoutException

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions