{"action":"created","issue":{"url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/1098","repository_url":"https://api.github.com/repos/OpenTreeOfLife/opentree","labels_url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/1098/labels{/name}","comments_url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/1098/comments","events_url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/1098/events","html_url":"https://github.com/OpenTreeOfLife/opentree/pull/1098","id":189557868,"number":1098,"title":"Return non-500 response if invalid NeXML uploaded.","user":{"login":"jimallman","id":446375,"avatar_url":"https://avatars.githubusercontent.com/u/446375?v=3","gravatar_id":"","url":"https://api.github.com/users/jimallman","html_url":"https://github.com/jimallman","followers_url":"https://api.github.com/users/jimallman/followers","following_url":"https://api.github.com/users/jimallman/following{/other_user}","gists_url":"https://api.github.com/users/jimallman/gists{/gist_id}","starred_url":"https://api.github.com/users/jimallman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimallman/subscriptions","organizations_url":"https://api.github.com/users/jimallman/orgs","repos_url":"https://api.github.com/users/jimallman/repos","events_url":"https://api.github.com/users/jimallman/events{/privacy}","received_events_url":"https://api.github.com/users/jimallman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-16T01:35:11Z","updated_at":"2016-11-17T19:19:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenTreeOfLife/opentree/pulls/1098","html_url":"https://github.com/OpenTreeOfLife/opentree/pull/1098","diff_url":"https://github.com/OpenTreeOfLife/opentree/pull/1098.diff","patch_url":"https://github.com/OpenTreeOfLife/opentree/pull/1098.patch"},"body":"This is to avoid a cryptic message that pushes the curator to reload the page (potentially losing work) for no good reason. The new exception (a 501 response) should give a friendly hint to examine the uploaded file more closely and choose the proper file format:\r\n\r\n<img width=\"552\" alt=\"screen shot 2016-11-15 at 8 23 47 pm\" src=\"https://cloud.githubusercontent.com/assets/446375/20331375/ec9c96f2-ab72-11e6-9ce9-5e8e9f2bd503.png\">\r\n\r\nFixes #1097."},"comment":{"url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/comments/261341757","html_url":"https://github.com/OpenTreeOfLife/opentree/pull/1098#issuecomment-261341757","issue_url":"https://api.github.com/repos/OpenTreeOfLife/opentree/issues/1098","id":261341757,"user":{"login":"jimallman","id":446375,"avatar_url":"https://avatars.githubusercontent.com/u/446375?v=3","gravatar_id":"","url":"https://api.github.com/users/jimallman","html_url":"https://github.com/jimallman","followers_url":"https://api.github.com/users/jimallman/followers","following_url":"https://api.github.com/users/jimallman/following{/other_user}","gists_url":"https://api.github.com/users/jimallman/gists{/gist_id}","starred_url":"https://api.github.com/users/jimallman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimallman/subscriptions","organizations_url":"https://api.github.com/users/jimallman/orgs","repos_url":"https://api.github.com/users/jimallman/repos","events_url":"https://api.github.com/users/jimallman/events{/privacy}","received_events_url":"https://api.github.com/users/jimallman/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T19:19:35Z","updated_at":"2016-11-17T19:19:35Z","body":"After some discussion, we've decided this should return a 400 error \"Bad request 400\", rather than implying a server-side problem, see https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error"}}
{"actor":{"display_login":"jimallman"}}