nitter icon indicating copy to clipboard operation
nitter copied to clipboard

Intermitent 404 on rss feeds

Open danieljakots opened this issue 6 years ago • 18 comments

Hi, I'm running cad7584 with docker. I subscribed to some rss feeds. From time to time, instead of having a 200, I get a 404. I was advised to remove "-d:release" from nimble build to get logs. But they're not super helpful.

Here's the log both when it worked and when it didn't.

DEBUG GET /reuters/rss
DEBUG   200 OK {"content-type": @["application/rss+xml; charset=utf-8"], "min-id": @["HBaCwKeF+P7q6CQAAA=="]}
DEBUG GET /reuters/rss
DEBUG   404 Not Found {"content-type": @["text/html;charset=utf-8"]}

danieljakots avatar Nov 11 '20 16:11 danieljakots

I see this randomly happening from yesterday on some of the nitter rss feeds that i subscribe, but i noticed that not only the rss resource but also the profile page on that specific nitter instance also gives a 404 regardless of which device I use. @danieljakots if you face this issue, could you also please check the profile page on your nitter instance..for example, you gave an example of reuters account.

diabolic-preacher avatar Dec 05 '20 17:12 diabolic-preacher

Since there's little interest in this, there's no point in keeping it open so I close it.

danieljakots avatar Feb 18 '21 01:02 danieljakots

I am seeing this. For example on the official instance https://nitter.net/endangeredcomic/rss frequently returns 404. Is the problem that a backend failure is being turned into a 404 instead of a 502 or 500?

kevincox avatar Nov 30 '21 12:11 kevincox

I use a self hosted instance with about a dozen feeds and this happens to all of them on a daily basis.

mostfunkyduck avatar Jan 04 '22 12:01 mostfunkyduck

@mostfunkyduck what commit are you running?

zedeus avatar Jan 04 '22 12:01 zedeus

47f47bb

mostfunkyduck avatar Jan 04 '22 12:01 mostfunkyduck

Weird, any interesting logs? Does it only affect RSS feeds?

zedeus avatar Jan 04 '22 12:01 zedeus

Logs are empty, though if there's a way to crank up the verbosity, happy to do so. I see this rendering tweets/profiles as well, though I usually am using the RSS feeds to read stuff (with ample refreshing of the feeds), so I'm not sure how prevalent the issue is.

edit: regarding config that would crank verbosity - i'm using the docker container, not building from source

mostfunkyduck avatar Jan 04 '22 12:01 mostfunkyduck

Is it the usual "Page not found" error page? How often does it happen? Nitter itself can't be told to make more logs unfortunately

zedeus avatar Jan 04 '22 13:01 zedeus

The RSS feed reader I use (miniflux) gets a HTTP 404 error. I reproduced in the browser just now with @quinnypig and it rendered the profile and banner, but no tweets. I checked in dev tools when this was happening and everything was returning 200s and the console was empty. image

For what it's worth, it seems to happen regularly if I refresh the page enough times. Each refresh is hit or miss - it doesn't start consistently breaking, subsequent refreshes may work.

I can try building from source and attempting to reproduce with debug logs on at some point this week, depending on how much time I have for it.

mostfunkyduck avatar Jan 04 '22 13:01 mostfunkyduck

This sounds exactly like what would happen before my recent fixes to the token pool, I can't imagine it why it would still happen now

zedeus avatar Jan 04 '22 13:01 zedeus

Interesting, how was it breaking? That might help me debug. I could also try configuring the token pool differently if that could somehow impact behavior.

mostfunkyduck avatar Jan 04 '22 14:01 mostfunkyduck

gotta step away for a bit, but I tried doubling the token count in the config from 10 to 20 and redeployed and I haven't been able to reproduce yet. My HUNCH is that this has to do with token expiry times more than the increased count, but we'll see. I'm going to let it sit for a while and see what happens to the feeds.

mostfunkyduck avatar Jan 04 '22 14:01 mostfunkyduck

@mostfunkyduck I've reworked the token pool's logic completely to hopefully fix every remaining issue that can cause intermittent 404s/"rate limits", let me know if it's still an issue with the latest commit

zedeus avatar Jan 06 '22 02:01 zedeus

@zedeus awesome! I've deployed the latest. I'll give it about 12 hours before declaring victory. I didn't watch it closely enough to pinpoint when it starts failing, but 12 hours seems ample. I also noticed the new enableDebug config setting and I have that on.

mostfunkyduck avatar Jan 06 '22 08:01 mostfunkyduck

@zedeus Sorry for the delayed response. The fix we discussed here didn't actually work, BUT 3d91ae0256d899da5346449c26380fa269011b6e seems to have done the trick. I applied it as soon as it hit master and haven't had a 404 since, compared to them setting in almost immediately before.

mostfunkyduck avatar Jan 17 '22 11:01 mostfunkyduck

@zedeus Sorry for the delayed response. The fix we discussed here didn't actually work, BUT 3d91ae0 seems to have done the trick. I applied it as soon as it hit master and haven't had a 404 since, compared to them setting in almost immediately before.

@zedeus is this deployed on nitter.net? Today had the same issue as @mostfunkyduck had: I use an rss feed reader, and got a 404 on https://nitter.net/HindenburgRes/rss.

VIEWVIEWVIEW avatar Oct 09 '22 13:10 VIEWVIEWVIEW

@VIEWVIEWVIEW you can see which commit is being used on the about page, nitter.net/about It was probably just an intermittent server issue.

zedeus avatar Oct 14 '22 00:10 zedeus