{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla-services/syncto/issues/49","labels_url":"https://api.github.com/repos/mozilla-services/syncto/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/syncto/issues/49/comments","events_url":"https://api.github.com/repos/mozilla-services/syncto/issues/49/events","html_url":"https://github.com/mozilla-services/syncto/pull/49","id":110395706,"number":49,"title":"Log syncclient status code in statsd rather than logging the exception in Sentry.","user":{"login":"leplatrem","id":546692,"avatar_url":"https://avatars.githubusercontent.com/u/546692?v=3","gravatar_id":"","url":"https://api.github.com/users/leplatrem","html_url":"https://github.com/leplatrem","followers_url":"https://api.github.com/users/leplatrem/followers","following_url":"https://api.github.com/users/leplatrem/following{/other_user}","gists_url":"https://api.github.com/users/leplatrem/gists{/gist_id}","starred_url":"https://api.github.com/users/leplatrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leplatrem/subscriptions","organizations_url":"https://api.github.com/users/leplatrem/orgs","repos_url":"https://api.github.com/users/leplatrem/repos","events_url":"https://api.github.com/users/leplatrem/events{/privacy}","received_events_url":"https://api.github.com/users/leplatrem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla-services/syncto/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mozilla-services/syncto/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"Natim","id":229453,"avatar_url":"https://avatars.githubusercontent.com/u/229453?v=3","gravatar_id":"","url":"https://api.github.com/users/Natim","html_url":"https://github.com/Natim","followers_url":"https://api.github.com/users/Natim/followers","following_url":"https://api.github.com/users/Natim/following{/other_user}","gists_url":"https://api.github.com/users/Natim/gists{/gist_id}","starred_url":"https://api.github.com/users/Natim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natim/subscriptions","organizations_url":"https://api.github.com/users/Natim/orgs","repos_url":"https://api.github.com/users/Natim/repos","events_url":"https://api.github.com/users/Natim/events{/privacy}","received_events_url":"https://api.github.com/users/Natim/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-10-08T08:21:13Z","updated_at":"2015-10-14T09:49:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla-services/syncto/pulls/49","html_url":"https://github.com/mozilla-services/syncto/pull/49","diff_url":"https://github.com/mozilla-services/syncto/pull/49.diff","patch_url":"https://github.com/mozilla-services/syncto/pull/49.patch"},"body":"```\r\n\"GET   /v1/buckets/syncto/collections/meta/records\" ? (? ms) 401 Client Error: Unauthorized for url: https://token.services.mozilla.com/1.0/sync/1.5?duration=300 lang=en-US,en;q=0.5; exception=Traceback (most recent call last):\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/pyramid/tweens.py\", line 21, in excview_tween\r\n    response = handler(request)\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/pyramid/router.py\", line 163, in handle_request\r\n    response = view_callable(context, request)\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/pyramid/config/views.py\", line 596, in __call__\r\n    return view(context, request)\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/pyramid/config/views.py\", line 329, in attr_view\r\n    return view(context, request)\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/pyramid/config/views.py\", line 305, in predicate_wrapper\r\n    return view(context, request)\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/pyramid/config/views.py\", line 355, in rendered_view\r\n    result = view(context, request)\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/pyramid/config/views.py\", line 501, in _requestonly_view\r\n    response = view(request)\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/cornice/service.py\", line 573, in wrapper\r\n    response = view_(request)\r\n  File \"/home/ubuntu/syncto/syncto/views/collection.py\", line 21, in collection_get\r\n    sync_client = build_sync_client(request)\r\n  File \"/home/ubuntu/syncto/syncto/authentication.py\", line 65, in build_sync_client\r\n    credentials = tokenserver.get_hawk_credentials(duration=ttl)\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/syncclient/client.py\", line 68, in get_hawk_credentials\r\n    raw_resp.raise_for_status()\r\n  File \"/home/ubuntu/venvs/syncto/local/lib/python2.7/site-packages/requests/models.py\", line 837, in raise_for_status\r\n    raise HTTPError(http_error_msg, response=self)\r\nHTTPError: 401 Client Error: Unauthorized for url: https://token.services.mozilla.com/1.0/sync/1.5?duration=300; uid=None; errno=None; agent=Mozilla/5.0 (Mobile; rv:43.0) Gecko/20100101 Firefox/43.0; authn_type=None\r\n```"},"comment":{"url":"https://api.github.com/repos/mozilla-services/syncto/issues/comments/147993949","html_url":"https://github.com/mozilla-services/syncto/pull/49#issuecomment-147993949","issue_url":"https://api.github.com/repos/mozilla-services/syncto/issues/49","id":147993949,"user":{"login":"ametaireau","id":67073,"avatar_url":"https://avatars.githubusercontent.com/u/67073?v=3","gravatar_id":"","url":"https://api.github.com/users/ametaireau","html_url":"https://github.com/ametaireau","followers_url":"https://api.github.com/users/ametaireau/followers","following_url":"https://api.github.com/users/ametaireau/following{/other_user}","gists_url":"https://api.github.com/users/ametaireau/gists{/gist_id}","starred_url":"https://api.github.com/users/ametaireau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ametaireau/subscriptions","organizations_url":"https://api.github.com/users/ametaireau/orgs","repos_url":"https://api.github.com/users/ametaireau/repos","events_url":"https://api.github.com/users/ametaireau/events{/privacy}","received_events_url":"https://api.github.com/users/ametaireau/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T09:49:59Z","updated_at":"2015-10-14T09:49:59Z","body":"r+wc"}}