Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

feat(profile-ui): render member-registration 503 codes as human copy

Jose Ramirez31f7dbf949c9
diff --git a/profile-ui/lib/api.ts b/profile-ui/lib/api.ts
index 27fc5b8a1..182a19d07 100644
--- a/profile-ui/lib/api.ts
+++ b/profile-ui/lib/api.ts
@@ -129,6 +129,16 @@ export async function apiSend(
} catch {
detail = text
}
+ if (detail === 'member_registration_unavailable') {
+ throw new Error(
+ "Invitations are unavailable — the member-registration service isn't configured or can't be reached. Check the server logs for details."
+ )
+ }
+ if (detail === 'member_registration_misconfigured') {
+ throw new Error(
+ 'Invitations are unavailable — member registration is misconfigured. Check the server logs for details.'
+ )
+ }
throw new Error(`${res.status} ${res.statusText} - ${detail}`)
}
if (res.status === 204) {