{"action":"closed","issue":{"url":"https://api.github.com/repos/universalcore/consular/issues/19","labels_url":"https://api.github.com/repos/universalcore/consular/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/universalcore/consular/issues/19/comments","events_url":"https://api.github.com/repos/universalcore/consular/issues/19/events","html_url":"https://github.com/universalcore/consular/issues/19","id":99608716,"number":19,"title":"Twisted callback error on first launch of Consular","user":{"login":"JayH5","id":1748643,"avatar_url":"https://avatars.githubusercontent.com/u/1748643?v=3","gravatar_id":"","url":"https://api.github.com/users/JayH5","html_url":"https://github.com/JayH5","followers_url":"https://api.github.com/users/JayH5/followers","following_url":"https://api.github.com/users/JayH5/following{/other_user}","gists_url":"https://api.github.com/users/JayH5/gists{/gist_id}","starred_url":"https://api.github.com/users/JayH5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayH5/subscriptions","organizations_url":"https://api.github.com/users/JayH5/orgs","repos_url":"https://api.github.com/users/JayH5/repos","events_url":"https://api.github.com/users/JayH5/events{/privacy}","received_events_url":"https://api.github.com/users/JayH5/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-07T08:54:10Z","updated_at":"2015-09-11T16:57:38Z","closed_at":"2015-09-11T16:57:38Z","body":"The `callbackUrls` field seems to be missing on the first request to Marathon at `/v2/eventSubscriptions` for some reason...\r\n```\r\n2015-08-07 10:49:41+0200 [-] Unhandled error in Deferred:\r\n2015-08-07 10:49:41+0200 [-] Unhandled Error\r\n\tTraceback (most recent call last):\r\n\t  File \"/var/praekelt/consular-python/local/lib/python2.7/site-packages/twisted/internet/defer.py\", line 393, in callback\r\n\t    self._startRunCallbacks(result)\r\n\t  File \"/var/praekelt/consular-python/local/lib/python2.7/site-packages/twisted/internet/defer.py\", line 501, in _startRunCallbacks\r\n\t    self._runCallbacks()\r\n\t  File \"/var/praekelt/consular-python/local/lib/python2.7/site-packages/twisted/internet/defer.py\", line 588, in _runCallbacks\r\n\t    current.result = callback(current.result, *args, **kw)\r\n\t  File \"/var/praekelt/consular-python/local/lib/python2.7/site-packages/twisted/internet/defer.py\", line 1184, in gotResult\r\n\t    _inlineCallbacks(r, g, deferred)\r\n\t--- <exception caught here> ---\r\n\t  File \"/var/praekelt/consular-python/local/lib/python2.7/site-packages/twisted/internet/defer.py\", line 1126, in _inlineCallbacks\r\n\t    result = result.throwExceptionIntoGenerator(g)\r\n\t  File \"/var/praekelt/consular-python/local/lib/python2.7/site-packages/twisted/python/failure.py\", line 389, in throwExceptionIntoGenerator\r\n\t    return g.throw(self.type, self.value, self.tb)\r\n\t  File \"/var/praekelt/consular/consular/main.py\", line 75, in register_marathon_event_callback\r\n\t    existing_callbacks = yield self.get_marathon_event_callbacks()\r\n\t  File \"/var/praekelt/consular-python/local/lib/python2.7/site-packages/twisted/internet/defer.py\", line 588, in _runCallbacks\r\n\t    current.result = callback(current.result, *args, **kw)\r\n\t  File \"/var/praekelt/consular/consular/main.py\", line 61, in <lambda>\r\n\t    d.addCallback(lambda data: data['callbackUrls'])\r\n\texceptions.KeyError: 'callbackUrls'\r\n```"}}