Skip to content

cannot create key-value in "code" mode for version 1.21.4 #22574

@shantanugadgil

Description

@shantanugadgil

Reproduction Steps

  • download the latest version 1.21.4
  • unzip the file
  • run in dev mode consul agent -dev
  • browse to 127.0.0.1:8500 and try to create a key value

All I get is the spinner continuously rotating as can be seen in the screen shot:

Image

Also on the console, I see the following (probably related):

2025-08-14T00:59:52.409+0530 [DEBUG] agent: warning: request content-type is not supported: request-path="/v1/kv/?keys&dc=dc1&separator=%2F"
2025-08-14T00:59:52.409+0530 [DEBUG] agent: warning: response content-type header not explicitly set.: request-path="/v1/kv/?keys&dc=dc1&separator=%2F"
2025-08-14T00:59:54.116+0530 [DEBUG] agent: warning: request content-type is not supported: request-path="/ui/dc1/kv/%7B%7B.ContentPath%7D%7Dassets/chunk.504.6916aef248f167c7ce2b.js"
2025-08-14T00:59:54.116+0530 [DEBUG] agent: warning: response content-type header not explicitly set.: request-path="/ui/dc1/kv/%7B%7B.ContentPath%7D%7Dassets/chunk.504.6916aef248f167c7ce2b.js"
2025-08-14T01:00:03.741+0530 [DEBUG] agent: warning: request content-type is not supported: request-path="/ui/dc1/kv/%7B%7B.ContentPath%7D%7Dassets/chunk.504.6916aef248f167c7ce2b.js"
2025-08-14T01:00:03.741+0530 [DEBUG] agent: warning: response content-type header not explicitly set.: request-path="/ui/dc1/kv/%7B%7B.ContentPath%7D%7Dassets/chunk.504.6916aef248f167c7ce2b.js"

NOTE: If I switch off "code" mode, I can create the key-value

Image

Consul Version

1.21.4 in dev mode (consul agent -dev)

Consul v1.21.4
Revision 59b8b905
Build Date 2025-08-13T12:03:12Z
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)

Browser and Operating system details

Mozilla Firefox on Linux
Vivaldi on Linux

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions