praw icon indicating copy to clipboard operation
praw copied to clipboard

Not getting any comments from /all

Open Autissima opened this issue 2 months ago • 2 comments

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

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

[]
[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

Autissima avatar Nov 07 '25 23:11 Autissima

I've had previous issues with the same thing, across multiple PRAW versions, and for me all the cases were a result of the reddit API simply not returning any items. I had to add a retry loop and just try over and over again till it worked.

Watchful1 avatar Nov 08 '25 01:11 Watchful1

This issue is stale because it has been open for 30 days with no activity.

Remove the Stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Dec 08 '25 01:12 github-actions[bot]