You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(web): surface actionable error when Lighthouse is unreachable (#1293)
* fix(web): surface actionable error when Lighthouse is unreachable
When a fetch to the Lighthouse licensing service throws at the network
layer (DNS, TLS, connection refused, timeout), the raw error bubbled
through sew and was flattened into a generic "an unexpected error
occurred" message, giving self-hosted operators nothing to act on.
Centralize the request in a requestLighthouse helper that catches the
throw and returns a LIGHTHOUSE_UNREACHABLE ServiceError naming the URL
and underlying cause. As a ServiceError it is preserved by sew instead
of genericized, so the real failure reaches the user.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: fill in PR number in CHANGELOG entry
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
- Fixed GitLab MR inline review comments returning 400 Bad Request on context (unchanged) lines and renamed files. [#1149](https://github.com/sourcebot-dev/sourcebot/pull/1149)
18
18
- Upgraded `ws` to `^8.20.1`. [#1286](https://github.com/sourcebot-dev/sourcebot/pull/1286)
19
19
- Upgraded `hono` to `^4.12.24`. [#1289](https://github.com/sourcebot-dev/sourcebot/pull/1289)
20
+
- Surfaced an actionable error when the Lighthouse licensing service is unreachable, instead of a generic "unexpected error". [#1293](https://github.com/sourcebot-dev/sourcebot/pull/1293)
0 commit comments