opened
indradhanush
username_0
The `proto` key is missing in the `member.members` array in `hab 0.61`. I've added the older API response (`hab 0.59`) vs the current one:

```
$ hab -V
hab 0.59.0/20180712155441

$ curl -sS "http://${192.168.222.10}:9631/butterfly" | jq  -r '.member.members'
{
  "6783054ce0ef4217b55aee7fe0a79b3d": {
    "proto": {
      "id": "6783054ce0ef4217b55aee7fe0a79b3d",
      "incarnation": 0,
      "address": "192.168.222.11",
      "swim_port": 9638,
      "gossip_port": 9638,
      "persistent": false
    }
  },
  "525c498f48704f23b5eb0de5e4f41d2a": {
    "proto": {
      "id": "525c498f48704f23b5eb0de5e4f41d2a",
      "incarnation": 0,
      "address": "192.168.222.12",
      "swim_port": 9638,
      "gossip_port": 9638,
      "persistent": false
    }
  },
  "830e3788e40f447a99a1e1b788b03312": {
    "proto": {
      "id": "830e3788e40f447a99a1e1b788b03312",
      "incarnation": 0,
      "address": "192.168.222.10",
      "swim_port": 9638,
      "gossip_port": 9638,
      "persistent": false
    }
  }
}
```



```
$ hab -V
hab 0.61.0/20180815171844

$ curl -sS "http://${192.168.222.10}:9631/butterfly" | jq  -r '.member.members'
{
  "df189df8ae554d648717b2a5c936fda7": {
    "id": "df189df8ae554d648717b2a5c936fda7",
    "incarnation": 0,
    "address": "192.168.222.12",
    "swim_port": 9638,
    "gossip_port": 9638,
    "persistent": false,
    "departed": false
  },
  "1138a15b1a4e4eda82611da919c9406b": {
    "id": "1138a15b1a4e4eda82611da919c9406b",
    "incarnation": 0,
    "address": "192.168.222.11",
    "swim_port": 9638,
    "gossip_port": 9638,
    "persistent": false,
    "departed": false
  },
  "fb2f9adc0be54331a152db5f416fada1": {
    "id": "fb2f9adc0be54331a152db5f416fada1",
    "incarnation": 0,
    "address": "192.168.222.10",
    "swim_port": 9638,
    "gossip_port": 9638,
    "persistent": false,
    "departed": false
  }
}
```

Is this change expected?
Breaking change in API response of /butterfly in 0.61
issue
created
christophermaier
username_1
This is a side effect of how we were serializing the internal data structures directly. We won't be adding this structure back to mimic how the `rust-protobuf` worked.

More broadly speaking, https://github.com/habitat-sh/habitat/issues/5389 will address the overall problem, and provide a documented contract for the HTTP gateway going forward.
comment
closed
christophermaier
username_1
issue