{"action":"created","issue":{"url":"https://api.github.com/repos/jarun/googler/issues/27","repository_url":"https://api.github.com/repos/jarun/googler","labels_url":"https://api.github.com/repos/jarun/googler/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/jarun/googler/issues/27/comments","events_url":"https://api.github.com/repos/jarun/googler/issues/27/events","html_url":"https://github.com/jarun/googler/pull/27","id":135024372,"number":27,"title":"Log full HTML response to a tmpfile when debug is on","user":{"login":"zmwangx","id":4149852,"avatar_url":"https://avatars.githubusercontent.com/u/4149852?v=3","gravatar_id":"","url":"https://api.github.com/users/zmwangx","html_url":"https://github.com/zmwangx","followers_url":"https://api.github.com/users/zmwangx/followers","following_url":"https://api.github.com/users/zmwangx/following{/other_user}","gists_url":"https://api.github.com/users/zmwangx/gists{/gist_id}","starred_url":"https://api.github.com/users/zmwangx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmwangx/subscriptions","organizations_url":"https://api.github.com/users/zmwangx/orgs","repos_url":"https://api.github.com/users/zmwangx/repos","events_url":"https://api.github.com/users/zmwangx/events{/privacy}","received_events_url":"https://api.github.com/users/zmwangx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-20T02:35:56Z","updated_at":"2016-02-20T02:46:16Z","closed_at":"2016-02-20T02:45:09Z","pull_request":{"url":"https://api.github.com/repos/jarun/googler/pulls/27","html_url":"https://github.com/jarun/googler/pull/27","diff_url":"https://github.com/jarun/googler/pull/27.diff","patch_url":"https://github.com/jarun/googler/pull/27.patch"},"body":"The full HTML response body is the single most valuable reproducer when something goes wrong during the handling of that response.\r\n\r\nThis commit writes it to a tmpfile (usually under `$TMPDIR`, with the `googler-response-` prefix) and prints the path to console when debug (`-d`) is on:\r\n\r\n    [DEBUG] Response body written to '/tmp/googler-response-oqY18e'.\r\n\r\nso when asked a user could supply that log to facilitate debugging."},"comment":{"url":"https://api.github.com/repos/jarun/googler/issues/comments/186493557","html_url":"https://github.com/jarun/googler/pull/27#issuecomment-186493557","issue_url":"https://api.github.com/repos/jarun/googler/issues/27","id":186493557,"user":{"login":"zmwangx","id":4149852,"avatar_url":"https://avatars.githubusercontent.com/u/4149852?v=3","gravatar_id":"","url":"https://api.github.com/users/zmwangx","html_url":"https://github.com/zmwangx","followers_url":"https://api.github.com/users/zmwangx/followers","following_url":"https://api.github.com/users/zmwangx/following{/other_user}","gists_url":"https://api.github.com/users/zmwangx/gists{/gist_id}","starred_url":"https://api.github.com/users/zmwangx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmwangx/subscriptions","organizations_url":"https://api.github.com/users/zmwangx/orgs","repos_url":"https://api.github.com/users/zmwangx/repos","events_url":"https://api.github.com/users/zmwangx/events{/privacy}","received_events_url":"https://api.github.com/users/zmwangx/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T02:46:16Z","updated_at":"2016-02-20T02:46:16Z","body":"> I am hoping tempfile.mkstemp() plays nice on Windows from the docs! :D\r\n\r\nI believe so. I've certainly written cross-platform tools/libraries before that relies on `tempfile.mkstemp()`, especially in tests."}}