Updated specific locations to be searchable, take a look at Las Vegas as an example.

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
[PRAW] Alternating success and timeout
Post Flair (click to view more posts with a particular flair)
Author Summary
Pawl_The_Cone is in PRAW
Post Body

Hey, very new to using the Reddit API here, and getting a bug I can't quite understand. So my setup is that I have a Discord bot that checks for posts or comments containing X every 15 minutes. The only API calls I make are:

self.reddit.subreddit(sub).new(limit=25)    

and

post.comments.replace_more(limit=0)    

The main part of the error (it prints a ton of stack trace) is

requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='oauth.reddit.com', port=443): Read timed out. (read timeout=16.0)    

I thought that it might be the replace_more since I heard it's one request per replacement, but these are small threads, and when I wrapped it in a try/except that's not where the exception was coming from, so it has to be the first.

Now the interesting part is that the first attempt will always succeed. The next will always throw the exception. The next will always succeed, and so on. Even if i retry again 2 seconds after a failure (having just waited a full 15 minutes prior), it will succeed on the second try.

So while it's not really a problem, I'm just wondering if anyone has any insight into why/how this happens. If not, I can just chalk it up to some weirdness of being a component of the bot, even if I don't get it.

Author
Account Strength
0%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
68,339
Link Karma
12,092
Comment Karma
55,747
Profile updated: 4 months ago
Posts updated: 6 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago