fix: retry transient failures in container image metadata fetch#386
Open
Copilot wants to merge 2 commits into
Open
fix: retry transient failures in container image metadata fetch#386Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
- Add `withRetry` helper to docker-registry.js that retries up to 2 times on transient errors (timeout, ECONNRESET, ECONNREFUSED, ETIMEDOUT, ENOTFOUND, HTTP 5xx) with linear backoff (2s, 4s) - Wrap `getImageConfig` with `withRetry` so registry timeouts no longer fail the metadata endpoint on the first attempt - Improve frontend error message to hint the user can click "Fetch metadata" to retry manually if all retries are exhausted Closes #385
Copilot
AI
changed the title
[WIP] Fix container detail fetching timeout issue
fix: retry transient failures in container image metadata fetch
Jun 25, 2026
runleveldev
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Registry requests for container image metadata intermittently fail with timeouts or transient network errors, with no retry logic causing the entire fetch to fail immediately.
Backend (
docker-registry.js)withRetryhelper: retries up to 2 times with linear backoff (2 s, 4 s) on transient errors —timeout,ECONNRESET,ECONNREFUSED,ETIMEDOUT,ENOTFOUND, HTTP 5xxgetImageConfig(the entry point for the/metadataAPI) is wrapped withwithRetryFrontend (
ContainerFormPage.tsx)— Use "Fetch metadata" to try again.to direct the user to the existing retry button.