Skip to content

Help solving a 503 on one feed #1243

Discussion options

You must be logged in to vote

Ok, I found the 503 issue. This URL responds with a 503 if multiple requests are sent too quickly. The reason this is happening in News is that in FeedServiceV2, it's calling Exporer->discover() followed immediately by FeedFetcher->fetch() for the same URL.

I've locally modified FeedServiceV2 to place a sleep(1) between those two calls and now News is able to add the feed.

So my question is, what's an acceptable way to fix/prevent this? I'm happy to provide a pull request, if there is a solution that project maintainers would accept. Maybe a sleep is OK. Or perhaps, only sleep/retry if there is an exception with the FeedFetcher->fetch() call.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@Grotax
Comment options

@skiingwiz
Comment options

@Grotax
Comment options

Comment options

You must be logged in to vote
3 replies
@SMillerDev
Comment options

@skiingwiz
Comment options

@SMillerDev
Comment options

Answer selected by skiingwiz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants