soabase / exhibitor

ZooKeeper co-process for instance monitoring, backup/recovery, cleanup and visualization.

Home Page:https://groups.google.com/forum/#!topic/exhibitor-users/PVkcd88mk8c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST API sometimes fail to format the response as JSON

clehene opened this issue · comments

# curl -vv -s http://internal-c2-lb-zk-1994267542.us-west-1.elb.amazonaws.com/exhibitor/v1/cluster/list
* About to connect() to internal-c2-lb-zk-1994267542.us-west-1.elb.amazonaws.com port 80 (#0)
*   Trying 10.0.0.192...
* Connected to internal-c2-lb-zk-1994267542.us-west-1.elb.amazonaws.com (10.0.0.192) port 80 (#0)
> GET /exhibitor/v1/cluster/list HTTP/1.1
> User-Agent: curl/7.29.0
> Host: internal-c2-lb-zk-1994267542.us-west-1.elb.amazonaws.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: application/x-www-form-urlencoded
< Server: Jetty(1.5.5)
< Content-Length: 39
< Connection: keep-alive
<
* Connection #0 to host internal-c2-lb-zk-1994267542.us-west-1.elb.amazonaws.com left intact
count=1&server0=ip-10-0-0-219&port=2181

After a restart

# curl -vv -s http://internal-c2-lb-zk-1994267542.us-weer/listb.amazonaws.com/exhibitor/v1/cluste
* About to connect() to internal-c2-lb-zk-1994267542.us-west-1.elb.amazonaws.com port 80 (#0)
*   Trying 10.0.0.189...
* Connected to internal-c2-lb-zk-1994267542.us-west-1.elb.amazonaws.com (10.0.0.189) port 80 (#0)
> GET /exhibitor/v1/cluster/list HTTP/1.1
> User-Agent: curl/7.29.0
> Host: internal-c2-lb-zk-1994267542.us-west-1.elb.amazonaws.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: application/json
< Server: Jetty(1.5.5)
< transfer-encoding: chunked
< Connection: keep-alive
<
* Connection #0 to host internal-c2-lb-zk-1994267542.us-west-1.elb.amazonaws.com left intact
{"servers":["ip-10-0-0-219"],"port":2181}