{"action":"closed","issue":{"url":"https://api.github.com/repos/scitran/core/issues/202","repository_url":"https://api.github.com/repos/scitran/core","labels_url":"https://api.github.com/repos/scitran/core/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/scitran/core/issues/202/comments","events_url":"https://api.github.com/repos/scitran/core/issues/202/events","html_url":"https://github.com/scitran/core/issues/202","id":141369924,"number":202,"title":"Stack traces logged during benign non-200 returns","user":{"login":"kofalt","id":265071,"avatar_url":"https://avatars.githubusercontent.com/u/265071?v=3","gravatar_id":"","url":"https://api.github.com/users/kofalt","html_url":"https://github.com/kofalt","followers_url":"https://api.github.com/users/kofalt/followers","following_url":"https://api.github.com/users/kofalt/following{/other_user}","gists_url":"https://api.github.com/users/kofalt/gists{/gist_id}","starred_url":"https://api.github.com/users/kofalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kofalt/subscriptions","organizations_url":"https://api.github.com/users/kofalt/orgs","repos_url":"https://api.github.com/users/kofalt/repos","events_url":"https://api.github.com/users/kofalt/events{/privacy}","received_events_url":"https://api.github.com/users/kofalt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scitran/core/labels/Tech%20Debt","name":"Tech Debt","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"nagem","id":5702596,"avatar_url":"https://avatars.githubusercontent.com/u/5702596?v=3","gravatar_id":"","url":"https://api.github.com/users/nagem","html_url":"https://github.com/nagem","followers_url":"https://api.github.com/users/nagem/followers","following_url":"https://api.github.com/users/nagem/following{/other_user}","gists_url":"https://api.github.com/users/nagem/gists{/gist_id}","starred_url":"https://api.github.com/users/nagem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagem/subscriptions","organizations_url":"https://api.github.com/users/nagem/orgs","repos_url":"https://api.github.com/users/nagem/repos","events_url":"https://api.github.com/users/nagem/events{/privacy}","received_events_url":"https://api.github.com/users/nagem/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-16T18:58:34Z","updated_at":"2016-05-09T20:25:54Z","closed_at":"2016-05-09T20:25:54Z","body":"Stack traces catch the eye when developing or reviewing logs, and right now we sometimes dump a stack in cases that are expected and benign:\r\n\r\n```\r\n2016-03-16 15:53:27      scitran.api                  base.py   189:ERRO Traceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/webapp2.py\", line 570, in dispatch\r\n    return method(*args, **kwargs)\r\n  File \"./api/jobs.py\", line 292, in next\r\n    self.abort(400, 'No jobs to process')\r\n  File \"./api/base.py\", line 254, in abort\r\n    webapp2.abort(code, detail=detail, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/webapp2.py\", line 1830, in abort\r\n    raise cls(*args, **kwargs)\r\nHTTPBadRequest: No jobs to process\r\n```\r\n\r\nThis is partially blocked by #66 for the reasons mentioned in that thread, but we might be able to solve this sooner by changing our usage of `self.abort`. Filed as part of an ops conversation with @ryansanford. _Update_: @lmperry just ran into this in prod as well."}}