{"action":"closed","issue":{"url":"https://api.github.com/repos/omab/python-social-auth/issues/920","repository_url":"https://api.github.com/repos/omab/python-social-auth","labels_url":"https://api.github.com/repos/omab/python-social-auth/issues/920/labels{/name}","comments_url":"https://api.github.com/repos/omab/python-social-auth/issues/920/comments","events_url":"https://api.github.com/repos/omab/python-social-auth/issues/920/events","html_url":"https://github.com/omab/python-social-auth/issues/920","id":152532921,"number":920,"title":"Unexpected HTTPError on Facebook's Internal Server Error","user":{"login":"ziima","id":331955,"avatar_url":"https://avatars.githubusercontent.com/u/331955?v=3","gravatar_id":"","url":"https://api.github.com/users/ziima","html_url":"https://github.com/ziima","followers_url":"https://api.github.com/users/ziima/followers","following_url":"https://api.github.com/users/ziima/following{/other_user}","gists_url":"https://api.github.com/users/ziima/gists{/gist_id}","starred_url":"https://api.github.com/users/ziima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziima/subscriptions","organizations_url":"https://api.github.com/users/ziima/orgs","repos_url":"https://api.github.com/users/ziima/repos","events_url":"https://api.github.com/users/ziima/events{/privacy}","received_events_url":"https://api.github.com/users/ziima/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-05-02T11:05:24Z","updated_at":"2016-12-27T15:25:02Z","closed_at":"2016-12-27T15:25:02Z","body":"In case Internal server error is returned by Facebook, unexpected `HTTPError` is raised. In my opinion, all exceptions from `requests` should be transformed to one of social auth exceptions by `handle_http_errors` utility.\n\nTraceback from the unexpected error:\n\n```\n  File \"/usr/lib/python2.7/dist-packages/social/actions.py\", line 43, in do_complete\n    user = backend.complete(user=user, *args, **kwargs)\n\n  File \"/usr/lib/python2.7/dist-packages/social/backends/base.py\", line 40, in complete\n    return self.auth_complete(*args, **kwargs)\n\n  File \"/usr/lib/python2.7/dist-packages/social/utils.py\", line 202, in wrapper\n    return func(*args, **kwargs)\n\n  File \"/usr/lib/python2.7/dist-packages/social/backends/facebook.py\", line 87, in auth_complete\n    return self.do_auth(access_token, response, *args, **kwargs)\n\n  File \"/usr/lib/python2.7/dist-packages/social/backends/facebook.py\", line 104, in do_auth\n    data = self.user_data(access_token)\n\n  File \"/usr/lib/python2.7/dist-packages/social/backends/facebook.py\", line 57, in user_data\n    return self.get_json(self.USER_DATA_URL, params=params)\n\n  File \"/usr/lib/python2.7/dist-packages/social/backends/base.py\", line 225, in get_json\n    return self.request(url, *args, **kwargs).json()\n\n  File \"/usr/lib/python2.7/dist-packages/social/backends/base.py\", line 221, in request\n    response.raise_for_status()\n\n  File \"/usr/lib/python2.7/dist-packages/requests/models.py\", line 851, in raise_for_status\n    raise HTTPError(http_error_msg, response=self)\n\nHTTPError: 500 Server Error: Internal Server Error\n```\n"}}
{"actor":{"display_login":"omab"}}