Skip to content
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

Issue with revalidation #693

Open
alacroix opened this issue Jan 7, 2025 · 1 comment
Open

Issue with revalidation #693

alacroix opened this issue Jan 7, 2025 · 1 comment

Comments

@alacroix
Copy link
Contributor

alacroix commented Jan 7, 2025

Hey guys, happy new year!

I have a recent issue with ISR. For some reasons, I have some pages in the revalidation queue that are 404 at the time (scrapers or else that try random pages maybe). For what I understand from the code here, if the response is not 200, it will add the record to the failed records object that will be retried later with the partial failure feature implemented in the PR #410.
As a result, I have a queue that piles up as I go along and legit revalidations are stuck behind duplicates of Not Found pages.

image

Do you have any advice / ideas on how to fix it? And why we need a 200 for the response of a revalidation (can't we just ignore the response status?)

Here is my configuration (mostly default) for my SQS Queue and trigger for the lambda (based on the reference implementation) :
image
image

Thanks!

@conico974
Copy link
Contributor

I have some pages in the revalidation queue that are 404 at the time (scrapers or else that try random pages maybe)

This should not cause these page to be in the revalidation queue, the only thing that i could think of that could cause a 404 in the queue would be the 404 route itself being revalidated or a route that was previously generated as a 200 and is now a 404.

And why we need a 200 for the response of a revalidation (can't we just ignore the response status?)

This one is tricky, we cannot just ignore other status code, a 500 or a 404 both could be a temporary issue and could cause the issue mentionned in the PR if not handled later.

As a workaround for now you could have a custom converter and not return failed records (the default converter is the sqs-revalidate), but first things is to understand why these records fail (you should see the failed one in cloudwatch logs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants