{
  "http_interactions": [
    {
      "recorded_at": "2017-07-22T06:53:02",
      "request": {
        "body": {
          "encoding": "utf-8",
          "string": "grant_type=client_credentials"
        },
        "headers": {
          "Accept": "*/*",
          "Accept-Encoding": "identity",
          "Authorization": "Basic <BASIC_AUTH>",
          "Connection": "keep-alive",
          "Content-Length": "29",
          "Content-Type": "application/x-www-form-urlencoded",
          "User-Agent": "<USER_AGENT> PRAW/5.0.2dev0 prawcore/0.11.0"
        },
        "method": "POST",
        "uri": "https://www.reddit.com/api/v1/access_token"
      },
      "response": {
        "body": {
          "encoding": "UTF-8",
          "string": "{\"access_token\": \"<ACCESS_TOKEN>\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}"
        },
        "headers": {
          "Accept-Ranges": "bytes",
          "Connection": "keep-alive",
          "Content-Length": "105",
          "Content-Type": "application/json; charset=UTF-8",
          "Date": "Sat, 22 Jul 2017 06:53:02 GMT",
          "Server": "snooserv",
          "Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload",
          "Via": "1.1 varnish",
          "X-Cache": "MISS",
          "X-Cache-Hits": "0",
          "X-Moose": "majestic",
          "X-Served-By": "cache-lax8628-LAX",
          "X-Timer": "S1500706382.422806,VS0,VE81",
          "cache-control": "max-age=0, must-revalidate",
          "set-cookie": "session_tracker=7llSOm2Fhg98KrCaJw.0.1500706382460.Z0FBQUFBQlpjdlpPUnlrVThCMzVaQkQwd1ZGT0VwSEcycmhkUU5RU3FIdU9CQ29yM2hSbFNLczVlLU0zUjhfLUg0VlE3VWhMcG5kUVpycDRBSXZhSG9xbDZySHNvZTZjcWwxUHRwRENxQll2aFNuZzlDTnJXbUxGcERNUWJqaTQyazlOMlc5U0lhMGM; Domain=reddit.com; Max-Age=7199; Path=/; expires=Sat, 22-Jul-2017 08:53:02 GMT; secure",
          "x-content-type-options": "nosniff",
          "x-frame-options": "SAMEORIGIN",
          "x-xss-protection": "1; mode=block"
        },
        "status": {
          "code": 200,
          "message": "OK"
        },
        "url": "https://www.reddit.com/api/v1/access_token"
      }
    },
    {
      "recorded_at": "2017-07-22T06:53:02",
      "request": {
        "body": {
          "encoding": "utf-8",
          "string": ""
        },
        "headers": {
          "Accept": "*/*",
          "Accept-Encoding": "identity",
          "Authorization": "bearer <ACCESS_TOKEN>",
          "Connection": "keep-alive",
          "Cookie": "edgebucket=BwMKvMQ2Kn7TJRt0HM; session_tracker=7llSOm2Fhg98KrCaJw.0.1500706382460.Z0FBQUFBQlpjdlpPUnlrVThCMzVaQkQwd1ZGT0VwSEcycmhkUU5RU3FIdU9CQ29yM2hSbFNLczVlLU0zUjhfLUg0VlE3VWhMcG5kUVpycDRBSXZhSG9xbDZySHNvZTZjcWwxUHRwRENxQll2aFNuZzlDTnJXbUxGcERNUWJqaTQyazlOMlc5U0lhMGM",
          "User-Agent": "<USER_AGENT> PRAW/5.0.2dev0 prawcore/0.11.0"
        },
        "method": "GET",
        "uri": "https://oauth.reddit.com/api/info/?id=t1_d81vwef&raw_json=1"
      },
      "response": {
        "body": {
          "encoding": "UTF-8",
          "string": "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"d81vwef\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 2, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"parent_id\": \"t3_54hhwl\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"That appears to be a bug in that PRAW4 is currently using `/api/info` to load the comment's attributes. I'll see what I can do.\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThat appears to be a bug in that PRAW4 is currently using \\u003Ccode\\u003E/api/info\\u003C/code\\u003E to load the comment\\u0026#39;s attributes. I\\u0026#39;ll see what I can do.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"can_gild\": true, \"subreddit\": \"redditdev\", \"name\": \"t1_d81vwef\", \"score_hidden\": false, \"num_reports\": null, \"stickied\": false, \"created\": 1474871603.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"created_utc\": 1474842803.0, \"distinguished\": null, \"mod_reports\": [], \"subreddit_type\": \"public\", \"ups\": 2}}], \"after\": null, \"before\": null}}"
        },
        "headers": {
          "Accept-Ranges": "bytes",
          "Connection": "keep-alive",
          "Content-Length": "1370",
          "Content-Type": "application/json; charset=UTF-8",
          "Date": "Sat, 22 Jul 2017 06:53:02 GMT",
          "Server": "snooserv",
          "Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload",
          "Vary": "accept-encoding",
          "Via": "1.1 varnish",
          "X-Cache": "MISS",
          "X-Cache-Hits": "0",
          "X-Moose": "majestic",
          "X-Served-By": "cache-lax8627-LAX",
          "X-Timer": "S1500706383.623148,VS0,VE99",
          "access-control-allow-origin": "*",
          "access-control-expose-headers": "X-Reddit-Tracking, X-Moose",
          "cache-control": "max-age=0, must-revalidate",
          "set-cookie": "loid=000000000007xs77j5.2.1500706382671.Z0FBQUFBQlpjdlpPcXBzcHZhVHRpMmt3WHlnT2dRSkVaSTN1ekJpbVh0bU50bHF1R2ZYX2hPdDRtaGoyYkdRZEpwZlM2djlINkN5RHFrUGJLZFk5UU9INEtDX1ljd2Zyc2ZsaXlsci0yQTYtVWNQeEJfQTFSaE1vcTFrX1dxeXFWRkhDUUlpZkxTZGY; Domain=reddit.com; Max-Age=63071999; Path=/; expires=Mon, 22-Jul-2019 06:53:02 GMT; secure",
          "x-content-type-options": "nosniff",
          "x-frame-options": "SAMEORIGIN",
          "x-reddit-tracking": "https://pixel.redditmedia.com/pixel/of_destiny.png?v=xm5Ez5oQfwK3UQFhhMq6Yl3BP2uUiv8SXCAEfx0ePguRWBYN9BN%2F1oeR6%2F9lUH5FXo3UyVHwkwI%3D",
          "x-ua-compatible": "IE=edge",
          "x-xss-protection": "1; mode=block"
        },
        "status": {
          "code": 200,
          "message": "OK"
        },
        "url": "https://oauth.reddit.com/api/info/?id=t1_d81vwef&raw_json=1"
      }
    },
    {
      "recorded_at": "2017-07-22T06:53:03",
      "request": {
        "body": {
          "encoding": "utf-8",
          "string": ""
        },
        "headers": {
          "Accept": "*/*",
          "Accept-Encoding": "identity",
          "Authorization": "bearer <ACCESS_TOKEN>",
          "Connection": "keep-alive",
          "Cookie": "edgebucket=BwMKvMQ2Kn7TJRt0HM; loid=000000000007xs77j5.2.1500706382671.Z0FBQUFBQlpjdlpPcXBzcHZhVHRpMmt3WHlnT2dRSkVaSTN1ekJpbVh0bU50bHF1R2ZYX2hPdDRtaGoyYkdRZEpwZlM2djlINkN5RHFrUGJLZFk5UU9INEtDX1ljd2Zyc2ZsaXlsci0yQTYtVWNQeEJfQTFSaE1vcTFrX1dxeXFWRkhDUUlpZkxTZGY; session_tracker=7llSOm2Fhg98KrCaJw.0.1500706382663.Z0FBQUFBQlpjdlpPVk15Yk9fYjJOc3pDbVQ3WEJZd3VQbUFEbC1fUHo5SFBEeGNPVmN5WFFWOWRzcUw4aVlpMFo0bFg0azgxZFJ1aHRPLXFDOTctSTE2ZjVERkZ1bnY0Qnhyb3Z6a1BPbUhINHV4OS10aVNfMmlFbVVrbHlQTm83bHQxTnh1RFBudHc",
          "User-Agent": "<USER_AGENT> PRAW/5.0.2dev0 prawcore/0.11.0"
        },
        "method": "GET",
        "uri": "https://oauth.reddit.com/comments/54hhwl/_/d81vwef?context=100&raw_json=1"
      },
      "response": {
        "body": {
          "encoding": "UTF-8",
          "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"approved_at_utc\": null, \"banned_by\": null, \"media_embed\": {}, \"thumbnail_width\": null, \"subreddit\": \"redditdev\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EJust as the title states. I\\u0026#39;m fetching a reddit comment through following lines:\\u003C/p\\u003E\\n\\n\\u003Cp\\u003Esession = praw.Reddit(login_stuff_here)\\n...\\nsession.comment(id=comment_id)\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EHow do I go about fetching and viewing a tree of this specific comment\\u0026#39;s replies? \\u003C/p\\u003E\\n\\n\\u003Cp\\u003EIt was possible in PRAW 3 given that I had the comment object; I was able to call comment.refresh() to fetch all of the comments, then use the member \\u0026quot;replies\\u0026quot;, like \\u0026quot;comment.replies\\u0026quot;, to view all of the specific comment\\u0026#39;s replies.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003ENow, it seems like I\\u0026#39;m only able to get a list of comment replies to that specific comment\\u0026#39;s \\u003Cstrong\\u003Esubmission\\u003C/strong\\u003E, but not just the tree of replies for that specific comment.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EAny advice on what I should try?\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Just as the title states. I'm fetching a reddit comment through following lines:\\n\\nsession = praw.Reddit(login_stuff_here)\\n...\\nsession.comment(id=comment_id)\\n\\nHow do I go about fetching and viewing a tree of this specific comment's replies? \\n\\nIt was possible in PRAW 3 given that I had the comment object; I was able to call comment.refresh() to fetch all of the comments, then use the member \\\"replies\\\", like \\\"comment.replies\\\", to view all of the specific comment's replies.\\n\\nNow, it seems like I'm only able to get a list of comment replies to that specific comment's **submission**, but not just the tree of replies for that specific comment.\\n\\nAny advice on what I should try?\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"link_flair_text\": \"PRAW\", \"id\": \"54hhwl\", \"banned_at_utc\": null, \"view_count\": null, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"OkRedditBot\", \"saved\": false, \"can_mod_post\": false, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.redditdev\", \"hidden\": false, \"num_comments\": 10, \"thumbnail\": \"self\", \"subreddit_id\": \"t5_2qizd\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"gilded\": 0, \"downs\": 0, \"brand_safe\": true, \"archived\": true, \"removal_reason\": null, \"stickied\": false, \"can_gild\": false, \"thumbnail_height\": null, \"hide_score\": false, \"spoiler\": false, \"permalink\": \"/r/redditdev/comments/54hhwl/praw_4_fetch_specific_comment_replies/\", \"subreddit_type\": \"public\", \"locked\": false, \"name\": \"t3_54hhwl\", \"created\": 1474871136.0, \"url\": \"https://www.reddit.com/r/redditdev/comments/54hhwl/praw_4_fetch_specific_comment_replies/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"[PRAW 4]: Fetch specific comment replies\", \"created_utc\": 1474842336.0, \"subreddit_name_prefixed\": \"r/redditdev\", \"ups\": 1, \"media\": null, \"upvote_ratio\": 0.67, \"mod_reports\": [], \"is_self\": true, \"visited\": false, \"num_reports\": null, \"is_video\": false, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"d83h2x4\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 2, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474939055.0, \"parent_id\": \"t1_d8320uo\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"What's happening here is that's a deleted comment. I made a fix (https://github.com/praw-dev/praw/commit/2804602f751f61bb76181907768e1807e65e53a6), but I am not likely to make a release tonight. You can either install the version out of the git repository (pip install --upgrade https://github.com/praw-dev/praw/archive/praw4.zip) or handle the exception you are currently receiving in your code. Either way, you'll have to handle an exception since it raises `ClientException` when refresh fails due to a deleted comment.\\n\\nDeleted comment: https://www.reddit.com/r/test/comments/52o2fl/testing_define_bot/d7ltvl0/\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EWhat\\u0026#39;s happening here is that\\u0026#39;s a deleted comment. I made a fix (\\u003Ca href=\\\"https://github.com/praw-dev/praw/commit/2804602f751f61bb76181907768e1807e65e53a6\\\"\\u003Ehttps://github.com/praw-dev/praw/commit/2804602f751f61bb76181907768e1807e65e53a6\\u003C/a\\u003E), but I am not likely to make a release tonight. You can either install the version out of the git repository (pip install --upgrade \\u003Ca href=\\\"https://github.com/praw-dev/praw/archive/praw4.zip\\\"\\u003Ehttps://github.com/praw-dev/praw/archive/praw4.zip\\u003C/a\\u003E) or handle the exception you are currently receiving in your code. Either way, you\\u0026#39;ll have to handle an exception since it raises \\u003Ccode\\u003EClientException\\u003C/code\\u003E when refresh fails due to a deleted comment.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EDeleted comment: \\u003Ca href=\\\"https://www.reddit.com/r/test/comments/52o2fl/testing_define_bot/d7ltvl0/\\\"\\u003Ehttps://www.reddit.com/r/test/comments/52o2fl/testing_define_bot/d7ltvl0/\\u003C/a\\u003E\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d83h2x4\", \"created\": 1474967855.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 2, \"depth\": 8, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"d836mqd\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474924252.0, \"parent_id\": \"t1_d8320uo\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"Oh okay. I'll take a look this evening (PDT).\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOh okay. I\\u0026#39;ll take a look this evening (PDT).\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d836mqd\", \"created\": 1474953052.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 1, \"depth\": 8, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d8320uo\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"cdrootrmdashrfstar\", \"can_mod_post\": false, \"created_utc\": 1474918446.0, \"parent_id\": \"t1_d831t17\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"Hello, the dev for this bot here. \\n\\nThe id is not prefixed in actual use, I only included this as a note to readers about IDs and the api. The code does not do any sort of prepending of prefixes and continues to fail in its current state. \\n\\nThe code is available here: https://github.com/seanpianka/OkReddit within the okreddit/okreddit.py file. \", \"edited\": 1474918726.0, \"author_flair_css_class\": null, \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHello, the dev for this bot here. \\u003C/p\\u003E\\n\\n\\u003Cp\\u003EThe id is not prefixed in actual use, I only included this as a note to readers about IDs and the api. The code does not do any sort of prepending of prefixes and continues to fail in its current state. \\u003C/p\\u003E\\n\\n\\u003Cp\\u003EThe code is available here: \\u003Ca href=\\\"https://github.com/seanpianka/OkReddit\\\"\\u003Ehttps://github.com/seanpianka/OkReddit\\u003C/a\\u003E within the okreddit/okreddit.py file. \\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d8320uo\", \"created\": 1474947246.0, \"author_flair_text\": null, \"collapsed\": false, \"ups\": 1, \"depth\": 7, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d831t17\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474918177.0, \"parent_id\": \"t1_d82waqz\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"There shouldn't be a prefix when using this method.Try passing in `d7ltvl0`.\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThere shouldn\\u0026#39;t be a prefix when using this method.Try passing in \\u003Ccode\\u003Ed7ltvl0\\u003C/code\\u003E.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d831t17\", \"created\": 1474946977.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 1, \"depth\": 6, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d82waqz\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"OkRedditBot\", \"can_mod_post\": false, \"created_utc\": 1474911253.0, \"parent_id\": \"t1_d82vz05\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"The id is \\\"d7ltvl0\\\" (prefixed with a \\\"t1_\\\")\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThe id is \\u0026quot;d7ltvl0\\u0026quot; (prefixed with a \\u0026quot;t1_\\u0026quot;)\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d82waqz\", \"created\": 1474940053.0, \"author_flair_text\": null, \"collapsed\": false, \"ups\": 1, \"depth\": 5, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d82vz05\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474910845.0, \"parent_id\": \"t1_d82twtt\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"What's the `comment['id']` in that case?\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EWhat\\u0026#39;s the \\u003Ccode\\u003Ecomment[\\u0026#39;id\\u0026#39;]\\u003C/code\\u003E in that case?\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d82vz05\", \"created\": 1474939645.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 1, \"depth\": 4, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d82twtt\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"OkRedditBot\", \"can_mod_post\": false, \"created_utc\": 1474908249.0, \"parent_id\": \"t1_d81xm8b\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"I have the following lines:\\n\\n     praw_comment = session.comment(id=comment['id'])\\n     praw_comment = praw_comment.refresh()\\n\\nThe first line runs fine for any and all comments I instantiate from the api.\\n\\nHowever, I'm receiving the follow traceback/error on certain comments when calling refresh:\\n\\n    Traceback (most recent call last):\\n      File \\\"okreddit.py\\\", line 254, in \\u003Cmodule\\u003E\\n        run(PHRASE_PATTERNS)\\n      File \\\"okreddit.py\\\", line 65, in run\\n        new_comments = scan_comments(r, phrases, USERNAME)\\n      File \\\"okreddit.py\\\", line 152, in scan_comments\\n        to_be_added_comments += validate_comments(raw_comments)\\n      File \\\"okreddit.py\\\", line 117, in validate_comments\\n        praw_comment = praw_comment.refresh()\\n      File \\\"/Users/Pianka/Development/.virtualenvs/okgoogle/lib/python3.5/site-packages/praw/models/reddit/comment.py\\\", line 92, in refresh\\n        comment = self._reddit.get(comment_path)[1].children[0]\\n    IndexError: list index out of range\\n\\nDo you have any insight into what this would be? Possibly something on my end?\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EI have the following lines:\\u003C/p\\u003E\\n\\n\\u003Cpre\\u003E\\u003Ccode\\u003E praw_comment = session.comment(id=comment[\\u0026#39;id\\u0026#39;])\\n praw_comment = praw_comment.refresh()\\n\\u003C/code\\u003E\\u003C/pre\\u003E\\n\\n\\u003Cp\\u003EThe first line runs fine for any and all comments I instantiate from the api.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EHowever, I\\u0026#39;m receiving the follow traceback/error on certain comments when calling refresh:\\u003C/p\\u003E\\n\\n\\u003Cpre\\u003E\\u003Ccode\\u003ETraceback (most recent call last):\\n  File \\u0026quot;okreddit.py\\u0026quot;, line 254, in \\u0026lt;module\\u0026gt;\\n    run(PHRASE_PATTERNS)\\n  File \\u0026quot;okreddit.py\\u0026quot;, line 65, in run\\n    new_comments = scan_comments(r, phrases, USERNAME)\\n  File \\u0026quot;okreddit.py\\u0026quot;, line 152, in scan_comments\\n    to_be_added_comments += validate_comments(raw_comments)\\n  File \\u0026quot;okreddit.py\\u0026quot;, line 117, in validate_comments\\n    praw_comment = praw_comment.refresh()\\n  File \\u0026quot;/Users/Pianka/Development/.virtualenvs/okgoogle/lib/python3.5/site-packages/praw/models/reddit/comment.py\\u0026quot;, line 92, in refresh\\n    comment = self._reddit.get(comment_path)[1].children[0]\\nIndexError: list index out of range\\n\\u003C/code\\u003E\\u003C/pre\\u003E\\n\\n\\u003Cp\\u003EDo you have any insight into what this would be? Possibly something on my end?\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d82twtt\", \"created\": 1474937049.0, \"author_flair_text\": null, \"collapsed\": false, \"ups\": 1, \"depth\": 3, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d81xm8b\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 2, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474845286.0, \"parent_id\": \"t1_d81w4vt\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"`refresh` has been added to v.4.0.0b19. To update please run: `pip install --upgrade --pre praw`.\\n\\nThen I suggest doing:\\n\\n    comment = session.comment(id=comment_id).refresh()\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003E\\u003Ccode\\u003Erefresh\\u003C/code\\u003E has been added to v.4.0.0b19. To update please run: \\u003Ccode\\u003Epip install --upgrade --pre praw\\u003C/code\\u003E.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EThen I suggest doing:\\u003C/p\\u003E\\n\\n\\u003Cpre\\u003E\\u003Ccode\\u003Ecomment = session.comment(id=comment_id).refresh()\\n\\u003C/code\\u003E\\u003C/pre\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d81xm8b\", \"created\": 1474874086.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 2, \"depth\": 2, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d81w4vt\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"OkRedditBot\", \"can_mod_post\": false, \"created_utc\": 1474843135.0, \"parent_id\": \"t1_d81vwef\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"Thank you! My bot currently relies on this functionality for fetching and scanning over comment replies, so it's currently unusable until that feature is added (or unless I revert-migrate back to PRAW 3, but I'd rather not).\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThank you! My bot currently relies on this functionality for fetching and scanning over comment replies, so it\\u0026#39;s currently unusable until that feature is added (or unless I revert-migrate back to PRAW 3, but I\\u0026#39;d rather not).\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d81w4vt\", \"created\": 1474871935.0, \"author_flair_text\": null, \"collapsed\": false, \"ups\": 1, \"depth\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d81vwef\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 2, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474842803.0, \"parent_id\": \"t3_54hhwl\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"That appears to be a bug in that PRAW4 is currently using `/api/info` to load the comment's attributes. I'll see what I can do.\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThat appears to be a bug in that PRAW4 is currently using \\u003Ccode\\u003E/api/info\\u003C/code\\u003E to load the comment\\u0026#39;s attributes. I\\u0026#39;ll see what I can do.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d81vwef\", \"created\": 1474871603.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 2, \"depth\": 0, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]"
        },
        "headers": {
          "Accept-Ranges": "bytes",
          "Connection": "keep-alive",
          "Content-Length": "20883",
          "Content-Type": "application/json; charset=UTF-8",
          "Date": "Sat, 22 Jul 2017 06:53:02 GMT",
          "Server": "snooserv",
          "Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload",
          "Vary": "accept-encoding",
          "Via": "1.1 varnish",
          "X-Cache": "MISS",
          "X-Cache-Hits": "0",
          "X-Moose": "majestic",
          "X-Served-By": "cache-lax8627-LAX",
          "X-Timer": "S1500706383.748989,VS0,VE229",
          "access-control-allow-origin": "*",
          "access-control-expose-headers": "X-Reddit-Tracking, X-Moose",
          "cache-control": "max-age=0, must-revalidate",
          "set-cookie": "session_tracker=7llSOm2Fhg98KrCaJw.0.1500706382792.Z0FBQUFBQlpjdlpPWmlqU2FDcUg1QWZ2MVlESzlJeGpqUUZpZVc5SjB5WVVtZG9sZ19wMVFyN0Nwb3ZxcU4wYlozWlRYRTQwREhjdERlWldqOVkySzdnU3QweDJEdGtkLVhsYXVITC1HdG1TRGE3dEphU0ozYUJpYXA5TXZycDNaYUQ4ejFzeTQzQ24; Domain=reddit.com; Max-Age=7199; Path=/; expires=Sat, 22-Jul-2017 08:53:02 GMT; secure",
          "x-content-type-options": "nosniff",
          "x-frame-options": "SAMEORIGIN",
          "x-reddit-tracking": "https://pixel.redditmedia.com/pixel/of_destiny.png?v=YvOPU9wa33md06%2FBxbRaUFl0riH3DHobdJlq2nDQnP25fIgwzr7i8rqx1Sx%2By9%2BRBHIAQ%2BhACRX4wV%2FZj4y%2Bn68656IA4XrM",
          "x-ua-compatible": "IE=edge",
          "x-xss-protection": "1; mode=block"
        },
        "status": {
          "code": 200,
          "message": "OK"
        },
        "url": "https://oauth.reddit.com/comments/54hhwl/_/d81vwef?context=100&raw_json=1"
      }
    },
    {
      "recorded_at": "2017-07-22T06:53:03",
      "request": {
        "body": {
          "encoding": "utf-8",
          "string": ""
        },
        "headers": {
          "Accept": "*/*",
          "Accept-Encoding": "identity",
          "Authorization": "bearer <ACCESS_TOKEN>",
          "Connection": "keep-alive",
          "Cookie": "edgebucket=BwMKvMQ2Kn7TJRt0HM; loid=000000000007xs77j5.2.1500706382671.Z0FBQUFBQlpjdlpPcXBzcHZhVHRpMmt3WHlnT2dRSkVaSTN1ekJpbVh0bU50bHF1R2ZYX2hPdDRtaGoyYkdRZEpwZlM2djlINkN5RHFrUGJLZFk5UU9INEtDX1ljd2Zyc2ZsaXlsci0yQTYtVWNQeEJfQTFSaE1vcTFrX1dxeXFWRkhDUUlpZkxTZGY; session_tracker=7llSOm2Fhg98KrCaJw.0.1500706382792.Z0FBQUFBQlpjdlpPWmlqU2FDcUg1QWZ2MVlESzlJeGpqUUZpZVc5SjB5WVVtZG9sZ19wMVFyN0Nwb3ZxcU4wYlozWlRYRTQwREhjdERlWldqOVkySzdnU3QweDJEdGtkLVhsYXVITC1HdG1TRGE3dEphU0ozYUJpYXA5TXZycDNaYUQ4ejFzeTQzQ24",
          "User-Agent": "<USER_AGENT> PRAW/5.0.2dev0 prawcore/0.11.0"
        },
        "method": "GET",
        "uri": "https://oauth.reddit.com/comments/54hhwl/_/d81vwef?context=100&raw_json=1"
      },
      "response": {
        "body": {
          "encoding": "UTF-8",
          "string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t3\", \"data\": {\"contest_mode\": false, \"approved_at_utc\": null, \"banned_by\": null, \"media_embed\": {}, \"thumbnail_width\": null, \"subreddit\": \"redditdev\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EJust as the title states. I\\u0026#39;m fetching a reddit comment through following lines:\\u003C/p\\u003E\\n\\n\\u003Cp\\u003Esession = praw.Reddit(login_stuff_here)\\n...\\nsession.comment(id=comment_id)\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EHow do I go about fetching and viewing a tree of this specific comment\\u0026#39;s replies? \\u003C/p\\u003E\\n\\n\\u003Cp\\u003EIt was possible in PRAW 3 given that I had the comment object; I was able to call comment.refresh() to fetch all of the comments, then use the member \\u0026quot;replies\\u0026quot;, like \\u0026quot;comment.replies\\u0026quot;, to view all of the specific comment\\u0026#39;s replies.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003ENow, it seems like I\\u0026#39;m only able to get a list of comment replies to that specific comment\\u0026#39;s \\u003Cstrong\\u003Esubmission\\u003C/strong\\u003E, but not just the tree of replies for that specific comment.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EAny advice on what I should try?\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"selftext\": \"Just as the title states. I'm fetching a reddit comment through following lines:\\n\\nsession = praw.Reddit(login_stuff_here)\\n...\\nsession.comment(id=comment_id)\\n\\nHow do I go about fetching and viewing a tree of this specific comment's replies? \\n\\nIt was possible in PRAW 3 given that I had the comment object; I was able to call comment.refresh() to fetch all of the comments, then use the member \\\"replies\\\", like \\\"comment.replies\\\", to view all of the specific comment's replies.\\n\\nNow, it seems like I'm only able to get a list of comment replies to that specific comment's **submission**, but not just the tree of replies for that specific comment.\\n\\nAny advice on what I should try?\", \"likes\": null, \"suggested_sort\": null, \"user_reports\": [], \"secure_media\": null, \"link_flair_text\": \"PRAW\", \"id\": \"54hhwl\", \"banned_at_utc\": null, \"view_count\": null, \"secure_media_embed\": {}, \"clicked\": false, \"report_reasons\": null, \"author\": \"OkRedditBot\", \"saved\": false, \"can_mod_post\": false, \"score\": 1, \"approved_by\": null, \"over_18\": false, \"domain\": \"self.redditdev\", \"hidden\": false, \"num_comments\": 10, \"thumbnail\": \"self\", \"subreddit_id\": \"t5_2qizd\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"gilded\": 0, \"downs\": 0, \"brand_safe\": true, \"archived\": true, \"removal_reason\": null, \"stickied\": false, \"can_gild\": false, \"thumbnail_height\": null, \"hide_score\": false, \"spoiler\": false, \"permalink\": \"/r/redditdev/comments/54hhwl/praw_4_fetch_specific_comment_replies/\", \"subreddit_type\": \"public\", \"locked\": false, \"name\": \"t3_54hhwl\", \"created\": 1474871136.0, \"url\": \"https://www.reddit.com/r/redditdev/comments/54hhwl/praw_4_fetch_specific_comment_replies/\", \"author_flair_text\": null, \"quarantine\": false, \"title\": \"[PRAW 4]: Fetch specific comment replies\", \"created_utc\": 1474842336.0, \"subreddit_name_prefixed\": \"r/redditdev\", \"ups\": 1, \"media\": null, \"upvote_ratio\": 0.67, \"mod_reports\": [], \"is_self\": true, \"visited\": false, \"num_reports\": null, \"is_video\": false, \"distinguished\": null}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": {\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"d83h2x4\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 2, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474939055.0, \"parent_id\": \"t1_d8320uo\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"What's happening here is that's a deleted comment. I made a fix (https://github.com/praw-dev/praw/commit/2804602f751f61bb76181907768e1807e65e53a6), but I am not likely to make a release tonight. You can either install the version out of the git repository (pip install --upgrade https://github.com/praw-dev/praw/archive/praw4.zip) or handle the exception you are currently receiving in your code. Either way, you'll have to handle an exception since it raises `ClientException` when refresh fails due to a deleted comment.\\n\\nDeleted comment: https://www.reddit.com/r/test/comments/52o2fl/testing_define_bot/d7ltvl0/\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EWhat\\u0026#39;s happening here is that\\u0026#39;s a deleted comment. I made a fix (\\u003Ca href=\\\"https://github.com/praw-dev/praw/commit/2804602f751f61bb76181907768e1807e65e53a6\\\"\\u003Ehttps://github.com/praw-dev/praw/commit/2804602f751f61bb76181907768e1807e65e53a6\\u003C/a\\u003E), but I am not likely to make a release tonight. You can either install the version out of the git repository (pip install --upgrade \\u003Ca href=\\\"https://github.com/praw-dev/praw/archive/praw4.zip\\\"\\u003Ehttps://github.com/praw-dev/praw/archive/praw4.zip\\u003C/a\\u003E) or handle the exception you are currently receiving in your code. Either way, you\\u0026#39;ll have to handle an exception since it raises \\u003Ccode\\u003EClientException\\u003C/code\\u003E when refresh fails due to a deleted comment.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EDeleted comment: \\u003Ca href=\\\"https://www.reddit.com/r/test/comments/52o2fl/testing_define_bot/d7ltvl0/\\\"\\u003Ehttps://www.reddit.com/r/test/comments/52o2fl/testing_define_bot/d7ltvl0/\\u003C/a\\u003E\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d83h2x4\", \"created\": 1474967855.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 2, \"depth\": 8, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2qizd\", \"approved_at_utc\": null, \"banned_by\": null, \"removal_reason\": null, \"link_id\": \"t3_54hhwl\", \"likes\": null, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"d836mqd\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474924252.0, \"parent_id\": \"t1_d8320uo\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"Oh okay. I'll take a look this evening (PDT).\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EOh okay. I\\u0026#39;ll take a look this evening (PDT).\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d836mqd\", \"created\": 1474953052.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 1, \"depth\": 8, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d8320uo\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"cdrootrmdashrfstar\", \"can_mod_post\": false, \"created_utc\": 1474918446.0, \"parent_id\": \"t1_d831t17\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"Hello, the dev for this bot here. \\n\\nThe id is not prefixed in actual use, I only included this as a note to readers about IDs and the api. The code does not do any sort of prepending of prefixes and continues to fail in its current state. \\n\\nThe code is available here: https://github.com/seanpianka/OkReddit within the okreddit/okreddit.py file. \", \"edited\": 1474918726.0, \"author_flair_css_class\": null, \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EHello, the dev for this bot here. \\u003C/p\\u003E\\n\\n\\u003Cp\\u003EThe id is not prefixed in actual use, I only included this as a note to readers about IDs and the api. The code does not do any sort of prepending of prefixes and continues to fail in its current state. \\u003C/p\\u003E\\n\\n\\u003Cp\\u003EThe code is available here: \\u003Ca href=\\\"https://github.com/seanpianka/OkReddit\\\"\\u003Ehttps://github.com/seanpianka/OkReddit\\u003C/a\\u003E within the okreddit/okreddit.py file. \\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d8320uo\", \"created\": 1474947246.0, \"author_flair_text\": null, \"collapsed\": false, \"ups\": 1, \"depth\": 7, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d831t17\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474918177.0, \"parent_id\": \"t1_d82waqz\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"There shouldn't be a prefix when using this method.Try passing in `d7ltvl0`.\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThere shouldn\\u0026#39;t be a prefix when using this method.Try passing in \\u003Ccode\\u003Ed7ltvl0\\u003C/code\\u003E.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d831t17\", \"created\": 1474946977.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 1, \"depth\": 6, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d82waqz\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"OkRedditBot\", \"can_mod_post\": false, \"created_utc\": 1474911253.0, \"parent_id\": \"t1_d82vz05\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"The id is \\\"d7ltvl0\\\" (prefixed with a \\\"t1_\\\")\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThe id is \\u0026quot;d7ltvl0\\u0026quot; (prefixed with a \\u0026quot;t1_\\u0026quot;)\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d82waqz\", \"created\": 1474940053.0, \"author_flair_text\": null, \"collapsed\": false, \"ups\": 1, \"depth\": 5, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d82vz05\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474910845.0, \"parent_id\": \"t1_d82twtt\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"What's the `comment['id']` in that case?\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EWhat\\u0026#39;s the \\u003Ccode\\u003Ecomment[\\u0026#39;id\\u0026#39;]\\u003C/code\\u003E in that case?\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d82vz05\", \"created\": 1474939645.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 1, \"depth\": 4, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d82twtt\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"OkRedditBot\", \"can_mod_post\": false, \"created_utc\": 1474908249.0, \"parent_id\": \"t1_d81xm8b\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"I have the following lines:\\n\\n     praw_comment = session.comment(id=comment['id'])\\n     praw_comment = praw_comment.refresh()\\n\\nThe first line runs fine for any and all comments I instantiate from the api.\\n\\nHowever, I'm receiving the follow traceback/error on certain comments when calling refresh:\\n\\n    Traceback (most recent call last):\\n      File \\\"okreddit.py\\\", line 254, in \\u003Cmodule\\u003E\\n        run(PHRASE_PATTERNS)\\n      File \\\"okreddit.py\\\", line 65, in run\\n        new_comments = scan_comments(r, phrases, USERNAME)\\n      File \\\"okreddit.py\\\", line 152, in scan_comments\\n        to_be_added_comments += validate_comments(raw_comments)\\n      File \\\"okreddit.py\\\", line 117, in validate_comments\\n        praw_comment = praw_comment.refresh()\\n      File \\\"/Users/Pianka/Development/.virtualenvs/okgoogle/lib/python3.5/site-packages/praw/models/reddit/comment.py\\\", line 92, in refresh\\n        comment = self._reddit.get(comment_path)[1].children[0]\\n    IndexError: list index out of range\\n\\nDo you have any insight into what this would be? Possibly something on my end?\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EI have the following lines:\\u003C/p\\u003E\\n\\n\\u003Cpre\\u003E\\u003Ccode\\u003E praw_comment = session.comment(id=comment[\\u0026#39;id\\u0026#39;])\\n praw_comment = praw_comment.refresh()\\n\\u003C/code\\u003E\\u003C/pre\\u003E\\n\\n\\u003Cp\\u003EThe first line runs fine for any and all comments I instantiate from the api.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EHowever, I\\u0026#39;m receiving the follow traceback/error on certain comments when calling refresh:\\u003C/p\\u003E\\n\\n\\u003Cpre\\u003E\\u003Ccode\\u003ETraceback (most recent call last):\\n  File \\u0026quot;okreddit.py\\u0026quot;, line 254, in \\u0026lt;module\\u0026gt;\\n    run(PHRASE_PATTERNS)\\n  File \\u0026quot;okreddit.py\\u0026quot;, line 65, in run\\n    new_comments = scan_comments(r, phrases, USERNAME)\\n  File \\u0026quot;okreddit.py\\u0026quot;, line 152, in scan_comments\\n    to_be_added_comments += validate_comments(raw_comments)\\n  File \\u0026quot;okreddit.py\\u0026quot;, line 117, in validate_comments\\n    praw_comment = praw_comment.refresh()\\n  File \\u0026quot;/Users/Pianka/Development/.virtualenvs/okgoogle/lib/python3.5/site-packages/praw/models/reddit/comment.py\\u0026quot;, line 92, in refresh\\n    comment = self._reddit.get(comment_path)[1].children[0]\\nIndexError: list index out of range\\n\\u003C/code\\u003E\\u003C/pre\\u003E\\n\\n\\u003Cp\\u003EDo you have any insight into what this would be? Possibly something on my end?\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d82twtt\", \"created\": 1474937049.0, \"author_flair_text\": null, \"collapsed\": false, \"ups\": 1, \"depth\": 3, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d81xm8b\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 2, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474845286.0, \"parent_id\": \"t1_d81w4vt\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"`refresh` has been added to v.4.0.0b19. To update please run: `pip install --upgrade --pre praw`.\\n\\nThen I suggest doing:\\n\\n    comment = session.comment(id=comment_id).refresh()\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003E\\u003Ccode\\u003Erefresh\\u003C/code\\u003E has been added to v.4.0.0b19. To update please run: \\u003Ccode\\u003Epip install --upgrade --pre praw\\u003C/code\\u003E.\\u003C/p\\u003E\\n\\n\\u003Cp\\u003EThen I suggest doing:\\u003C/p\\u003E\\n\\n\\u003Cpre\\u003E\\u003Ccode\\u003Ecomment = session.comment(id=comment_id).refresh()\\n\\u003C/code\\u003E\\u003C/pre\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d81xm8b\", \"created\": 1474874086.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 2, \"depth\": 2, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d81w4vt\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 1, \"report_reasons\": null, \"author\": \"OkRedditBot\", \"can_mod_post\": false, \"created_utc\": 1474843135.0, \"parent_id\": \"t1_d81vwef\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"Thank you! My bot currently relies on this functionality for fetching and scanning over comment replies, so it's currently unusable until that feature is added (or unless I revert-migrate back to PRAW 3, but I'd rather not).\", \"edited\": false, \"author_flair_css_class\": null, \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThank you! My bot currently relies on this functionality for fetching and scanning over comment replies, so it\\u0026#39;s currently unusable until that feature is added (or unless I revert-migrate back to PRAW 3, but I\\u0026#39;d rather not).\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d81w4vt\", \"created\": 1474871935.0, \"author_flair_text\": null, \"collapsed\": false, \"ups\": 1, \"depth\": 1, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}, \"user_reports\": [], \"saved\": false, \"id\": \"d81vwef\", \"banned_at_utc\": null, \"gilded\": 0, \"archived\": true, \"score\": 2, \"report_reasons\": null, \"author\": \"bboe\", \"can_mod_post\": false, \"created_utc\": 1474842803.0, \"parent_id\": \"t3_54hhwl\", \"subreddit_name_prefixed\": \"r/redditdev\", \"approved_by\": null, \"controversiality\": 0, \"body\": \"That appears to be a bug in that PRAW4 is currently using `/api/info` to load the comment's attributes. I'll see what I can do.\", \"edited\": false, \"author_flair_css_class\": \"\", \"downs\": 0, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EThat appears to be a bug in that PRAW4 is currently using \\u003Ccode\\u003E/api/info\\u003C/code\\u003E to load the comment\\u0026#39;s attributes. I\\u0026#39;ll see what I can do.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"can_gild\": true, \"subreddit\": \"redditdev\", \"score_hidden\": false, \"subreddit_type\": \"public\", \"name\": \"t1_d81vwef\", \"created\": 1474871603.0, \"author_flair_text\": \"PRAW Author\", \"collapsed\": false, \"ups\": 2, \"depth\": 0, \"mod_reports\": [], \"num_reports\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]"
        },
        "headers": {
          "Accept-Ranges": "bytes",
          "Connection": "keep-alive",
          "Content-Length": "20883",
          "Content-Type": "application/json; charset=UTF-8",
          "Date": "Sat, 22 Jul 2017 06:53:03 GMT",
          "Server": "snooserv",
          "Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload",
          "Vary": "accept-encoding",
          "Via": "1.1 varnish",
          "X-Cache": "MISS",
          "X-Cache-Hits": "0",
          "X-Moose": "majestic",
          "X-Served-By": "cache-lax8627-LAX",
          "X-Timer": "S1500706383.087463,VS0,VE203",
          "access-control-allow-origin": "*",
          "access-control-expose-headers": "X-Reddit-Tracking, X-Moose",
          "cache-control": "max-age=0, must-revalidate",
          "set-cookie": "session_tracker=7llSOm2Fhg98KrCaJw.0.1500706383134.Z0FBQUFBQlpjdlpQUDk2T2RJSGxqQkU3V3JJTUxaVEstbGJZeTkyTEp1X3Z0eEJGX3RtSjhDdlltTjN6MUhfbktoMGVaV1IxMmZXcFhzVDJoeHJDWGRodVc1dFVVU05vdU51TVVid2JhbXZlYzctQ0FKWHR0LXlrOTR2NmI1MmRfV09RNUQxNzdjWGo; Domain=reddit.com; Max-Age=7199; Path=/; expires=Sat, 22-Jul-2017 08:53:03 GMT; secure",
          "x-content-type-options": "nosniff",
          "x-frame-options": "SAMEORIGIN",
          "x-reddit-tracking": "https://pixel.redditmedia.com/pixel/of_destiny.png?v=4Zs2F2KaYFuEfaklC8xz%2B198qFVeMUKQAbq8y45WOFt9R34iutCQRqIyplYebt5cUCNyA10FL1VAWceYbRWThCNeza1nWUI9",
          "x-ua-compatible": "IE=edge",
          "x-xss-protection": "1; mode=block"
        },
        "status": {
          "code": 200,
          "message": "OK"
        },
        "url": "https://oauth.reddit.com/comments/54hhwl/_/d81vwef?context=100&raw_json=1"
      }
    }
  ],
  "recorded_with": "betamax/0.8.0"
}
