Open yuchunyun opened 9 months ago
Try URL-encoding the service name in the deregister API call: https://developer.hashicorp.com/consul/api-docs/api-structure#url-encoded-resource-names
As mentioned above, I have already URL-encoding the service name to 202.xxx.xxx.12:9062%E2%80%A8name=ymgjexporter
, is that wrong?
consul version: v1.14.5
Overview of the Issue
I accidentally registered a service with special characters in consul, now can not be deleted, an error is reported
400 Bad Request
. How to resolved?curl -X PUT -H 'X-Consul-Token: cd76a0f7-xxxx-xxxx-xxxx-073462acc6c7' 'http://192.168.120.57:8500/v1/agent/service/deregister/202.xxx.xxx.12:9062%E2%80%A8name=ymgjexporter' -v
Overview of the Issue
Reproduction Steps
Consul info for both Client and Server
Client info
``` Output from client 'consul info' command here ``` ``` Client agent HCL config ```Server info
``` Output from server 'consul info' command here ``` ``` Server agent HCL config ```Operating system and Environment details
Log Fragments