{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/4265","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/4265/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/4265/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/4265/events","html_url":"https://github.com/hashicorp/consul/issues/4265","id":334629280,"node_id":"MDU6SXNzdWUzMzQ2MjkyODA=","number":4265,"title":"New UI unusable when datacenter is down","user":{"login":"fastest963","id":112555,"node_id":"MDQ6VXNlcjExMjU1NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/112555?v=4","gravatar_id":"","url":"https://api.github.com/users/fastest963","html_url":"https://github.com/fastest963","followers_url":"https://api.github.com/users/fastest963/followers","following_url":"https://api.github.com/users/fastest963/following{/other_user}","gists_url":"https://api.github.com/users/fastest963/gists{/gist_id}","starred_url":"https://api.github.com/users/fastest963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastest963/subscriptions","organizations_url":"https://api.github.com/users/fastest963/orgs","repos_url":"https://api.github.com/users/fastest963/repos","events_url":"https://api.github.com/users/fastest963/events{/privacy}","received_events_url":"https://api.github.com/users/fastest963/received_events","type":"User","site_admin":false},"labels":[{"id":939676162,"node_id":"MDU6TGFiZWw5Mzk2NzYxNjI=","url":"https://api.github.com/repos/hashicorp/consul/labels/ui","name":"ui","color":"35f400","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-21T19:38:02Z","updated_at":"2018-06-22T23:03:00Z","closed_at":"2018-06-22T23:03:00Z","author_association":"CONTRIBUTOR","body":"#### Overview of the Issue\r\n\r\nThe old UI would still let you see alive datacenters despite a single datacenter being down but the new UI immediately fails when the services call for a particular datacenter fails. You can't even change datacenters since the list doesn't load. When you load the UI you get:\r\n```\r\n500 (The backend responded with an error)\r\n```\r\n\r\nBecause the JS is trying to load `/v1/internal/ui/services?dc=vagrant-james` and it's returning a 500 error.\r\n\r\nIt looks like the localStorage `dc` key is set to the down datacenter and since the dropdown doesn't load to let you select a different DC, it just fails on load. I think a good short-term fix is just still showing the DC selector at the top.\r\n\r\n#### Reproduction Steps\r\n\r\nSteps to reproduce this issue, eg:\r\n\r\n1. Create multiple clusters\r\n2. Goto `/ui`\r\n3. Shutdown all servers in one cluster.\r\n4. Reload `/ui`\r\n\r\n### Log Fragments\r\n\r\nRelated log:\r\n```\r\nhttp: Request GET /v1/internal/ui/services?dc=vagrant-james, error: rpc error getting client: failed to get conn: dial tcp <nil>->10.42.0.5:8300: connect: connection refused from=130.211.2.84:56091\r\n```\r\n"}}
{"actor":{"display_login":"fastest963"}}