Skip to content

subreddit.collections producing 500 error #2096

@NathanTech7713

Description

@NathanTech7713

Describe the Bug

When performing a collections get for subreddits, I receive a 500 error.

Desired Result

I should receive a listing genrator with the appropriate collections ready to be pulled.

Code to reproduce the bug

r=reddit.subreddit("nosleep")

c=[]
for x in r.collections:
    c.append(x)

My code does not include sensitive credentials

  • Yes, I have removed sensitive credentials from my code.

Relevant Logs

request = self._reddit.get(                                                                                         
  File "praw\util\deprecate_args.py", line 46, in wrapped                                 
    return func(**dict(zip(_old_args, args)), **kwargs)                                                                 
  File "praw\reddit.py", line 731, in get                                                 
    return self._objectify_request(method="GET", params=params, path=path)                                              
  File "praw\reddit.py", line 514, in _objectify_request                                  
    self.request(                                                                                                       
  File "praw\util\deprecate_args.py", line 46, in wrapped                                 
    return func(**dict(zip(_old_args, args)), **kwargs)                                                                 
  File "praw\reddit.py", line 963, in request                                             
    return self._core.request(                                                                                          
  File "prawcore\sessions.py", line 328, in request                                       
    return self._request_with_retries(                                                                                  
  File "prawcore\sessions.py", line 254, in _request_with_retries                         
    return self._do_retry(                                                                                              
  File "prawcore\sessions.py", line 162, in _do_retry                                     
    return self._request_with_retries(                                                                                  
  File "prawcore\sessions.py", line 254, in _request_with_retries                         
    return self._do_retry(                                                                                              
  File "prawcore\sessions.py", line 162, in _do_retry                                     
    return self._request_with_retries(                                                                                  
  File "prawcore\sessions.py", line 267, in _request_with_retries                         
    raise self.STATUS_EXCEPTIONS[response.status_code](response)                                                        
prawcore.exceptions.ServerError: received 500 HTTP response

This code has previously worked as intended

Yes

Operating System/Environment

windows

Python Version

3.12.0

PRAW Version

7.8.1

Links, references, and/or additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions