MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / lighthouseUnreachable

Function lighthouseUnreachable

packages/web/src/lib/serviceError.ts:72–80  ·  view source on GitHub ↗
(url: string, error: unknown)

Source from the content-addressed store, hash-verified

70}
71
72export const lighthouseUnreachable = (url: string, error: unknown): ServiceError => {
73 const detail = error instanceof Error ? error.message : String(error);
74 return {
75 statusCode: StatusCodes.SERVICE_UNAVAILABLE,
76 errorCode: ErrorCode.LIGHTHOUSE_UNREACHABLE,
77 message: `Could not reach the Sourcebot licensing service at ${url}. `
78 + `Verify this host has outbound network access to it, then try again. Details: ${detail}`,
79 };
80}
81
82export const notAuthenticated = (): ServiceError => {
83 return {

Callers 1

requestLighthouseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected