Skip to content

Commit 505c0dc

Browse files
committed
fix: metadata
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent 63050ea commit 505c0dc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

services/apps/packages_worker/src/maven/metadata.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ export async function resolveVersionsList(
111111
} catch (err) {
112112
if (axios.isAxiosError(err)) {
113113
const status = err.response?.status
114-
if (status === 404) return { kind: 'NOT_FOUND' }
114+
// 404 = standard not-found. 401 = JitPack's response for packages that
115+
// don't exist as public builds (JitPack uses 401 instead of 404 here).
116+
if (status === 404 || status === 401) return { kind: 'NOT_FOUND' }
115117
// 429 = explicit rate limit, 403 = CDN throttle (Maven Central uses both)
116118
if ((status === 429 || status === 403) && attempt < MAX_RETRIES) {
117119
const delay = RETRY_BASE_MS * 2 ** attempt + Math.random() * 500

0 commit comments

Comments
 (0)