diff --git a/CHANGELOG.md b/CHANGELOG.md index 66a9ab3ad..2674ebba7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgraded `@sentry/*` to `^10.70.0`, fixing memory leaks where spans retained request data indefinitely. [#1572](https://github.com/sourcebot-dev/sourcebot/pull/1572) - Fixed code search result links occasionally getting stuck during navigation and restored Cmd/Ctrl-click to open matches in preview. [#1574](https://github.com/sourcebot-dev/sourcebot/pull/1574) - Fixed a server-side memory leak where a single shared react-query cache retained state from every server render; the cache is now created per-request. [#1575](https://github.com/sourcebot-dev/sourcebot/pull/1575) +- Fixed code host retry warnings to include the HTTP response status. [#1576](https://github.com/sourcebot-dev/sourcebot/pull/1576) ## [5.1.6] - 2026-08-10 diff --git a/packages/backend/src/utils.test.ts b/packages/backend/src/utils.test.ts index b8d2e9753..7977c4b60 100644 --- a/packages/backend/src/utils.test.ts +++ b/packages/backend/src/utils.test.ts @@ -317,7 +317,7 @@ describe('fetchWithRetry', () => { expect(logger.warn).toHaveBeenCalledTimes(1); expect(logger.warn).toHaveBeenCalledWith( - expect.stringContaining('test-identifier') + expect.stringContaining('test-identifier with status 429') ); }); }); diff --git a/packages/backend/src/utils.ts b/packages/backend/src/utils.ts index ba028fb20..7b999ecc9 100644 --- a/packages/backend/src/utils.ts +++ b/packages/backend/src/utils.ts @@ -99,7 +99,7 @@ export const fetchWithRetry = async ( })(); const waitTime = Math.max(0, resetDateMs - Date.now()); - logger.warn(`Rate limit exceeded for ${identifier}. Waiting ${waitTime}ms before retry ${attempts}/${maxAttempts}...`); + logger.warn(`Request failed for ${identifier} with status ${e.status}. Waiting ${waitTime}ms before retry ${attempts}/${maxAttempts}...`); await new Promise(resolve => setTimeout(resolve, waitTime)); continue;