praw-dev / praw

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.
http://praw.readthedocs.io/
BSD 2-Clause "Simplified" License
3.4k stars 453 forks source link

404 for submission.mod.undistinguish() #1977

Closed martygriffin closed 9 months ago

martygriffin commented 9 months ago

Describe the Bug

Just starting getting a 404 error for my script using submission.mod.undistinguish(). I am running PRAW 7.7.1, it was working fine until I ran my script today.

Desired Result

submission.mod.undistinguish() returns a successful result.

Code to reproduce the bug

submission = r.submission(//submission id//)
        try:
                submission.mod.undistinguish()
        except Exception as e:
                print (e)

The Reddit() initialization in my code example does not include the following parameters to prevent credential leakage:

client_secret, password, or refresh_token.

Relevant Logs

Error: received 404 HTTP response

This code has previously worked as intended.

Yes

Operating System/Environment

Raspberry Pi OS 11

Python Version

3.11.1

PRAW Version

7.7.1

Prawcore Version

2.3.0

Anything else?

No response

LilSpazJoekp commented 9 months ago

What ID are you giving it?

martygriffin commented 9 months ago

And ID of a legit post. I am not sure what happened but it's working as expected again, must have been something on the reddit side, closing this.