We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e19e95 + 16c4de7 commit 1fc2caeCopy full SHA for 1fc2cae
net.go
@@ -217,7 +217,9 @@ func (e *EurekaConnection) DeregisterInstance(ins *Instance) error {
217
log.Errorf("Could not complete deregistration, error: %s", err.Error())
218
return err
219
}
220
- if rcode != 204 {
+ // Eureka promises to return HTTP status code upon deregistration success, but fargo used to accept status code 204
221
+ // here instead. Accommodate both for backward compatibility with any fake or proxy Eureka stand-ins.
222
+ if rcode != 200 && rcode != 204 {
223
log.Warningf("HTTP returned %d deregistering Instance=%s App=%s", rcode, ins.Id(), ins.App)
224
return fmt.Errorf("http returned %d possible failure deregistering instance\n", rcode)
225
0 commit comments