chatboxai/chatbox · error · Error
${payload.error || 'License request failed with status ${res
Error message
${payload.error || 'License request failed with status ${response.status}'} What it means
Error "${payload.error || 'License request failed with status ${response.status}'}" thrown in chatboxai/chatbox.
Source
Thrown at src/shared/services/native-license.ts:51
const fetchFn = options.fetchFn ?? fetch
const response = await fetchFn(`${resolveOrigin(options.apiOrigin)}${path}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options.headers },
body: JSON.stringify(body),
signal: options.signal,
})
let payload: unknown = null
try {
payload = await response.json()
} catch {
payload = null
}
if (!response.ok) {
const message =
payload && typeof payload === 'object' && 'error' in payload && typeof payload.error === 'string'
? payload.error
: `License request failed with status ${response.status}`
throw new Error(message)
}
return payload
}
export async function activateNativeLicense(
licenseKey: string,
instanceName: string,
options: NativeLicenseRequestOptions = {}
): Promise<NativeLicenseActivationResult> {
const payload = (await postLicense('/api/license/activate', { licenseKey, instanceName }, options)) as {
data?: { valid?: boolean; instanceId?: string; error?: string }
} | null
const data = payload?.data
return {
valid: Boolean(data?.valid),
instanceId: data?.instanceId ?? '',
error: data?.error,
}View on GitHub (pinned to 81571269ad)
Solutions
- Check the license key for typos and ensure it matches the product.
- Verify network connectivity to the license server and that no proxy is intercepting the request.
- Read the 'error' field from the response payload (already included in the message) for the specific rejection reason.
- If the activation limit is reached, deactivate the license on another device first.
Example fix
if (!response.ok) {
// message already contains payload.error or the status; surface it to the user
// and let them correct the license key or deactivate another instance
} When it happens
Trigger: Thrown at src/shared/services/native-license.ts:51 when the library encounters an invalid state.
Common situations: Occurs in src/shared/services/native-license.ts when the license request fails; the thrown message uses the server-provided payload.error or a generic status message.
AI-assisted analysis of chatboxai/chatbox@81571269ad (2026-08-12).
Data as JSON: /api/errors/7743e8c4dcee9ab3.
Report an issue: GitHub.