Skip to content

Not getting any comments from /all #2091

@Autissima

Description

@Autissima

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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleIssue or pull request has been inactive for 20 days

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions