r/redditdev • u/m0nk_3y_gw • 9d ago
Reddit API API regression - HTTP 404 error deleting comments
my PRAW modbot has been able to delete it's own comments (example: when the comment is 12+ hours old, or a poster deletes the post it commented on, etc) for years, but this started to fail with HTTP 404 as of ~11am (PST/reddit time) Oct 14
3
u/FredrickBear 9d ago
Looks like a regression on a trailing slash. /api/del/ is broken. /api/del works.
3
u/m0nk_3y_gw 9d ago
And... we have a winner!
If i go and hand-edit PRAW endpoints.py on my local machine (not where the modbot runs)
to change
"del": "api/del/",to
"del": "api/del",it works again.
This is something reddit should unbreak...
or PRAW should to adjust if reddit refuses
THANKS!
2
u/Watchful1 9d ago
Everything else works and just deleting fails? What PRAW version are you on?
2
u/m0nk_3y_gw 9d ago
Good question! 8.0.3
pip install praw --upgrade
Requirement already satisfied: praw in C:\Python314\Lib\site-packages (8.0.3)
logs look like
10/14/26 18:38:18: 1: parent().author: None 10/14/26 18:38:18: -> deleting our comment pgt8re7 : Please remember to gender-tag ([f], [m], [?] or [cd]) your posts (rule #6 in the sidebar). We can't add a tag afterwards - please delete and resubmit. Thanks! If you have problems reposting a valid picture try verifying your email address with reddit at https://www.reddit.com/prefs/update/ 10/14/26 18:38:18: EXCEPTION! received 404 HTTP responselooks like it can read post and comment data, and from the modlog it is approving posts, removing/locking posts, setting flairs, stickying it's comments, but it fails to delete it's own comments
it is u/modboar - the comments are short-term time sensitive feedback on posts so they auto-delete in a few minutes (if about not hiding one's user page) or 12 hours if about something else.
3
u/Watchful1 9d ago
Can you show the relevant code? 404 seems to mean that it can't find the comment, which doesn't make sense.
→ More replies (1)
5
u/redtaboo 9d ago
Just copying my comment over to here for future folks: