You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PUT /agent/force-leave/:node_name HTTP endpoint responds with a 500 Internal Server Error instead of 404 Not Found when there is no node with the specified name.
Reproduction Steps
Start a consul server with version 1.19.1
Run curl --verbose --request PUT <server-url>/v1/agent/force-leave/nonexistent-node
data_dir = "/consul/data"
server = true
bootstrap = true
Operating system and Environment details
OS: Arch linux (kernel version 6.10.12-hardened1-1-hardened)
This happens for Consul 1.19.1 when run both in docker and on bare-metal
Log Fragments
2024-10-28T12:36:59.145Z [INFO] agent: Force leaving node: node=this-node-does-not-exist
2024-10-28T12:36:59.145Z [WARN] agent: Failed to remove node: node=this-node-does-not-exist error="agent: No node found with name 'this-node-does-not-exist'"
2024-10-28T12:36:59.145Z [ERROR] agent.http: Request error: method=PUT url=/v1/agent/force-leave/this-node-does-not-exist from=172.17.0.1:36870 error="agent: No node found with name 'this-node-does-not-exist'"
2024-10-28T12:36:59.145Z [DEBUG] agent.http: Request finished: method=PUT url=/v1/agent/force-leave/this-node-does-not-exist from=172.17.0.1:36870 latency="94.995µs"
The text was updated successfully, but these errors were encountered:
Overview of the Issue
The
PUT /agent/force-leave/:node_name
HTTP endpoint responds with a500 Internal Server Error
instead of404 Not Found
when there is no node with the specified name.Reproduction Steps
curl --verbose --request PUT <server-url>/v1/agent/force-leave/nonexistent-node
Consul info for both Client and Server
Client info
N/AServer info
HCL:
Operating system and Environment details
OS: Arch linux (kernel version 6.10.12-hardened1-1-hardened)
This happens for Consul 1.19.1 when run both in docker and on bare-metal
Log Fragments
The text was updated successfully, but these errors were encountered: