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

Return content not found error when HTTP publisher responds with 404 #39

Merged
merged 1 commit into from
May 19, 2023

Conversation

masih
Copy link
Member

@masih masih commented May 19, 2023

The entry chunks for which content is not found are skipped by the indexer. In HTTP publisher, non-existing content returns 404. However, the error returned by the syncer does not allow the "content not found" error to bubble up to ingest pipeline. Therefore, the indexer cannot skip such CIDs from HTTP publishers.

In HTTP Syncer check the response status code and if 404 return relevant errors for upstream error handling.

Relates to:

The entry chunks for which content is not found are skipped by the
indexer. In HTTP publisher, non-existing content returns 404. However,
the error returned by the syncer does not allow the "content not found"
error to bubble up to ingest pipeline. Therefore, the indexer cannot
skip such CIDs from HTTP publishers.

In HTTP Syncer check the response status code and if 404 return relevant
errors for upstream error handling.

Relates to:
 - ipni/storetheindex#1771
@masih masih merged commit ce82bf8 into main May 19, 2023
@masih masih deleted the masih/http_sync_404 branch May 19, 2023 16:13
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

Successfully merging this pull request may close these issues.

2 participants