{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/658","labels_url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/658/comments","events_url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/658/events","html_url":"https://github.com/OpenTreeOfLife/opentree/issues/658","id":90674692,"number":658,"title":"move API calls to client in top page of webapp","user":{"login":"mtholder","id":136067,"avatar_url":"https://avatars.githubusercontent.com/u/136067?v=3","gravatar_id":"","url":"https://api.github.com/users/mtholder","html_url":"https://github.com/mtholder","followers_url":"https://api.github.com/users/mtholder/followers","following_url":"https://api.github.com/users/mtholder/following{/other_user}","gists_url":"https://api.github.com/users/mtholder/gists{/gist_id}","starred_url":"https://api.github.com/users/mtholder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtholder/subscriptions","organizations_url":"https://api.github.com/users/mtholder/orgs","repos_url":"https://api.github.com/users/mtholder/repos","events_url":"https://api.github.com/users/mtholder/events{/privacy}","received_events_url":"https://api.github.com/users/mtholder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-24T13:25:53Z","updated_at":"2015-06-24T13:25:53Z","closed_at":null,"body":"In https://github.com/OpenTreeOfLife/opentree/blob/master/webapp/controllers/default.py#L63-L66\r\nthere are comments noting that the basic info could/should be cached.  I agree with that.\r\n\r\nBut in the meantime, it would be nice if we could have a response page with the api server is down.\r\n\r\nRight now api.opentreeoflife.org treemachine services are hanging, and so I don't get a response from tree.opentreeoflife.org for 2 minutes.\r\nI think that the server-side calls highlighted in the code above have to time out before we get a response.\r\n\r\nIf the page did that with JSON (and had some fancy timer to tell the user that we're running into problems with the API server) then the system would be friendlier when we have these outages."}}