ITADN

Not getting any comments from /all

#2091ClosedAutissima 创建于 2025-11-07
StaleAuto-closed - Stale
A
Autissimacommented
### Describe the Bug Hi! I've been trying to pull the x newest comments from r/all and put them in a list and it just returns an empty array. I assume the listinggenerator is also empty? In the relevant logs is the output of the test code, I can pull the newest submissions from r/all and pull comments from r/test, just not comments from r/all, maybe I misconfigured something? But I really don't see where... ### Desired Result An array of 5 comment objects, expected output of the attached code should look like this: ``` [Comment(id='asdgah'), Comment(id='ajakhfsk'), Comment(id='sfghsftgh'), Comment(id='sfghsgh'), Comment(id='sfghfgh')] [Submission(id='1or97sa'), Submission(id='1or97s9'), Submission(id='1or97s8'), Submission(id='1or97s2'), Submission(id='1or97rz')] [Comment(id='nnod8uo'), Comment(id='nnod8br'), Comment(id='nnod7zn'), Comment(id='nnod7r2'), Comment(id='nnod76m')] ``` ### Code to reproduce the bug ```Python import praw reddit = praw.Reddit(username='', password='', client_id = '', client_secret = '', user_agent = '') comments = list(reddit.subreddit('all').comments(limit = 5)) print(comments) new = reddit.subreddit('all').new(limit = 5) print(new) comments = list(reddit.subreddit('test').comments(limit = 5)) print(comments) ``` ### My code does not include sensitive credentials - [x] Yes, I have removed sensitive credentials from my code. ### Relevant Logs ```Shell [] [Submission(id='1or97sa'), Submission(id='1or97s9'), Submission(id='1or97s8'), Submission(id='1or97s2'), Submission(id='1or97rz')] [Comment(id='nnod8uo'), Comment(id='nnod8br'), Comment(id='nnod7zn'), Comment(id='nnod7r2'), Comment(id='nnod76m')] ``` ### This code has previously worked as intended Yes, grabbing comments worked before on 7.8.1. ### Operating System/Environment Windows 10 ### Python Version 3.13.7 ### PRAW Version It stopped working with 7.8.1, I then updated and tried it on 7.8.2.dev0 ### Links, references, and/or additional comments? _No response_
关闭于 2026-01-07 5 条评论