{"action":"opened","issue":{"url":"https://api.github.com/repos/requests/requests/issues/4692","repository_url":"https://api.github.com/repos/requests/requests","labels_url":"https://api.github.com/repos/requests/requests/issues/4692/labels{/name}","comments_url":"https://api.github.com/repos/requests/requests/issues/4692/comments","events_url":"https://api.github.com/repos/requests/requests/issues/4692/events","html_url":"https://github.com/requests/requests/issues/4692","id":333501758,"node_id":"MDU6SXNzdWUzMzM1MDE3NTg=","number":4692,"title":"`RequestException` does not contain `request` as a field in some situation.","user":{"login":"dizzam","id":13601247,"node_id":"MDQ6VXNlcjEzNjAxMjQ3","avatar_url":"https://avatars0.githubusercontent.com/u/13601247?v=4","gravatar_id":"","url":"https://api.github.com/users/dizzam","html_url":"https://github.com/dizzam","followers_url":"https://api.github.com/users/dizzam/followers","following_url":"https://api.github.com/users/dizzam/following{/other_user}","gists_url":"https://api.github.com/users/dizzam/gists{/gist_id}","starred_url":"https://api.github.com/users/dizzam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dizzam/subscriptions","organizations_url":"https://api.github.com/users/dizzam/orgs","repos_url":"https://api.github.com/users/dizzam/repos","events_url":"https://api.github.com/users/dizzam/events{/privacy}","received_events_url":"https://api.github.com/users/dizzam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-19T02:55:12Z","updated_at":"2018-06-19T02:55:12Z","closed_at":null,"author_association":"NONE","body":"`RequestException` does not contain `request` as a field in some situation.\r\n\r\n## Expected Result\r\n\r\n`RequestException` (or its subclass) should contains a field named `request` if possible.\r\n\r\n## Actual Result\r\n\r\nI did not see any in \r\n\r\n[https://github.com/requests/requests/blob/master/requests/models.py#L752](https://github.com/requests/requests/blob/master/requests/models.py#L752)\r\n\r\n[https://github.com/requests/requests/blob/master/requests/models.py#L754](https://github.com/requests/requests/blob/master/requests/models.py#L754)\r\n\r\n[https://github.com/requests/requests/blob/master/requests/models.py#L756](https://github.com/requests/requests/blob/master/requests/models.py#L756)\r\n\r\nActually, I think it should be written like\r\n\r\n```python\r\nChunkedEncodingError(e, request=self.request)\r\n```\r\n"}}
{"actor":{"display_login":"dizzam"}}