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
now that we have the list of events, lets make the new request with long-polling to get some updates when things happen.. and once an event comes in:
making request with index: 14626327808633989327
http request made
/v1/event/list?wait=1m&index=14626327808633989327
STATUS: 200
HEADERS: {"content-type":"application/json","x-consul-index":"14626327808633989327, 12365592386954179651","date":"Tue, 23 Sep 2014 20:19:50 GMT","transfer-encoding":"chunked"}
So umm.. multiple x-consul-index values? I'll just use the second one since it seems to be the new one
Making request with just second index:
making request with index: 12365592386954179651
http request made
/v1/event/list?wait=1m&index=12365592386954179651
STATUS: 200
HEADERS: {"content-type":"application/json","x-consul-index":"12365592386954179651","date":"Tue, 23 Sep 2014 20:20:50 GMT","transfer-encoding":"chunked"}
And everything seems fine with the x-consul-index once the message timed out after 1m (as set in the wait param).
If i get a new event during this time though, the x-consul-index is back to providing multiple values, i.e. 'old, new' instead of just 'new'.
Environment:
One single consul (0.4.0), running on windows, nodejs http client.
agent command:
consul agent -ui-dir web_ui\dist\ -server -bootstrap-expect 1 -data-dir tmp\consul\
The text was updated successfully, but these errors were encountered:
Recently discovered that when using long-polling for the /v1/event/list api endpoint, the x-consul-index header will contain the old + new index:
So umm.. multiple x-consul-index values? I'll just use the second one since it seems to be the new one
And everything seems fine with the x-consul-index once the message timed out after 1m (as set in the wait param).
If i get a new event during this time though, the x-consul-index is back to providing multiple values, i.e. 'old, new' instead of just 'new'.
Environment:
One single consul (0.4.0), running on windows, nodejs http client.
agent command:
consul agent -ui-dir web_ui\dist\ -server -bootstrap-expect 1 -data-dir tmp\consul\
The text was updated successfully, but these errors were encountered: