dyrnq commented on PR #8928:
URL: https://github.com/apache/apisix/pull/8928#issuecomment-1447549444
@Fabriceli @spacewander
I have fix , but there has a small discussion and uncertainty about a config
of
```bash
discovery:
consul:
timeout:
wait: 60
```
the wait query param in consul need s or m obvious settingļ¼so in code i
need add .. "s"
```bash
wait = consul_conf.timeout.wait .."s", --blocked wait!=0; unblocked by wait=0
```
```bash
curl -fsSL -i http://127.0.0.1:8500/v1/health/state/any?wait=1s
HTTP/1.1 200 OK
Content-Type: application/json
Vary: Accept-Encoding
X-Consul-Effective-Consistency: leader
X-Consul-Index: 544
X-Consul-Knownleader: true
X-Consul-Lastcontact: 0
Date: Tue, 28 Feb 2023 04:11:07 GMT
Content-Length: 250
[{"Node":"8cd1fbccae10","CheckID":"serfHealth","Name":"Serf Health
Status","Status":"passing","Notes":"","Output":"Agent alive and
reachable","ServiceID":"","ServiceName":"","ServiceTags":[],"Type":"","Definition":{},"CreateIndex":5,"ModifyIndex":5}]
curl -fsSL -i http://127.0.0.1:8500/v1/health/state/any?wait=1
curl: (22) The requested URL returned error: 400 Bad Request
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]