Argo Tunnel API response incorrect

I believe that the JSON responses for the tunnel endpoints are missing the “success”, “errors”, “messages” wrapper. For example, the documentation for listing tunnels says the response should look something like:

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": [
    {
      "id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
      "name": "blog",
      "created_at": "2009-11-10T23:00:00Z",
      "deleted_at": "2009-11-10T23:00:00Z",
      "connections": [
        {
          "colo_name": "DFW",
          "uuid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
          "is_pending_reconnect": false
        }
      ]
    }
  ]
}

but on my end, I’m seeing something more like:

[
    {
      "id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
      "name": "blog",
      "created_at": "2009-11-10T23:00:00Z",
      "deleted_at": "2009-11-10T23:00:00Z",
      "connections": [
        {
          "colo_name": "DFW",
          "uuid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
          "is_pending_reconnect": false
        }
      ]
    }
]

(effectively, just the details under the result key).

Maybe relatedly, the delete endpoint does not seem to actually delete a tunnel for me, but I have not investigated enough to determine if that’s an issue on my end (for example, maybe “success” is false, but I can’t actually tell).

1 Like