`resubmit=False` started resubmitting Jul 24 2023
PatMyron opened this issue · comments
Describe the Bug
reddit.subreddit(sub).submit(title, url=url, resubmit=False)
started resubmitting duplicate links sometime between these datetimes:
Mon Jul 24 2023 06:57:51 GMT-0400 (Eastern Daylight Time)
Mon Jul 24 2023 08:56:40 GMT-0400 (Eastern Daylight Time)
I don't believe it was just a race condition either because it resubmitted the same links hundreds of times over hours
Desired Result
"When False, an error will occur if the URL has already been submitted"
Code to reproduce the bug
This was the environment configuration:
https://github.com/PatMyron/posts/blob/master/.github/workflows/cron.yaml
While the environment wasn't fully pinned, I don't believe the OS, Python, or praw
version changed, and I'm wondering if it's related to https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Relevant Logs
https://github.com/PatMyron/posts/actions/workflows/cron.yaml?page=21
This code has previously worked as intended.
Yes
Operating System/Environment
Ubuntu 22.04.2
Python Version
CPython 3.11.4
PRAW Version
7.7.1 ?
Prawcore Version
not sure
If you can reproduce with a small script reliably then we can help direct you to where to file the bug on Reddit's end.
here's a minimal example I reproduced with my client credential redacted:
import praw
reddit = praw.Reddit(REDACTED)
reddit.subreddit('test').submit('praw resubmit', url='https://example.com/', resubmit=False)
Great. I don't see the link you submitted on /r/test, nevertheless, you can report that bug to https://www.reddit.com/r/bugs/ if you want to follow through with Reddit on it. I'd recommend linking to this bug report as well and mention that nothing has changed on PRAW's end.
I don't see the link you submitted on /r/test
cleaned up all the duplicates after reproducing, reported in that subreddit: https://old.reddit.com/r/bugs/comments/15fj8p7/resubmitfalse_started_resubmitting_duplicate_urls/
Confirmed Reddit upstream bug, not praw
, closing