-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figues out why 304 got marked as invalid
#2604
Comments
@tpmai22 I did a whole debugging session for you on Slack to look at why this is, can you include that info here for follow up? |
Debugging session and advices:
|
Bumping this, as it's causing blogs from Tim, Anatoliy and others to not show on Telescope. We need to prioritize getting this solved ASAP and ship a fix in 2.6. |
I have spent some time on this with little progress. Here is a thread in slack for some more context. I'm not the best at using the Visual Studio Code debugger so I would be interested in maybe doing a LiveShare session, or just a old fashion screen share session if someone could help figure it out. |
cc'ing back-end folks @TueeNguyen, @nguyenhung15913, @tcvan0707, @AmasiaNalbandian, @joelazwar, @dbelokon, @JerryHue + sheriffs @sirinoks, @aserputov. Here's how I'd approach this debugging. We have 2 blogs that we know are not going to Telescope:
|
I can't reproduce this bug locally. I tried changing module.exports = /* async */ function () {
return Promise.resolve([
{
author: 'Tim',
url: 'https://dps909tddr.tech.blog/category/opensource/feed/',
},
]);
}; Then I set breakpoints in I deleted all the Redis data files in Then I ran Elasticsearch and Redis locally:
Next, I started the backend via VSCode's debugger, see docs. But I always get a 200. |
I've been trying to debug this but all I've got so far is 200 and occasionally 503. I let backend run with Tim's feed as the only feed to put Tim's feed into telescope/src/backend/feed/processor.js Line 65 in 3311a26
|
Same for me (mostly 200s, a few 503s). I'm going to close this as "not reproducible any more." Thanks for looking into it with me. I'll file another issue to wipe our Redis cache on staging/production, and free @TDDR's blog from the invalid queue. |
Filed #2800. |
What happened:
Refer to #2569
The 304 show up as an invalid when it state that the content has not been modified yet and we would set
shouldDowload
to falsetelescope/src/backend/feed/processor.js
Line 76 in 8b02287
After my debugging attempt it seem like the
304
get into the parserhttps://github.com/rbren/rss-parser/blob/33a9a4281d9c7aae051de148067223dcbdec5ad5/lib/parser.js#L87-L89
With my understand on the project, I will need more time to research and try different debugging technique to find it out
What should have happened:
304
status code should not show up as invalidThe text was updated successfully, but these errors were encountered: