HeyPuter/puter · error · HttpError
unauthorized
unauthorized
Error message
Authentication required
What it means
Error "Authentication required" thrown in HeyPuter/puter.
Source
Thrown at src/backend/drivers/ai-video/providers/together/TogetherVideoProvider.ts:117
}
const costPerVideoCents = selectedModel?.costs?.['per-video'];
if (!costPerVideoCents) {
throw new Error(`No pricing configured for video model ${model}`);
}
const costInMicroCents = costPerVideoCents * 1_000_000;
let normalizedSeconds = this.#coercePositiveInteger(
seconds ?? duration,
);
if (!no_extra_params) {
normalizedSeconds ??= DEFAULT_DURATION_SECONDS;
}
const actor = Context.get('actor');
if (!actor) {
throw new HttpError(401, 'Authentication required', {
legacyCode: 'unauthorized',
});
}
const usageAllowed = await this.#meteringService.hasEnoughCredits(
actor,
costInMicroCents,
);
if (!usageAllowed) {
throw new HttpError(402, 'Insufficient funds', {
legacyCode: 'insufficient_funds',
});
}
const createPayload: Together.VideoCreateParams & {
metadata?: object;
} = {
prompt,View on GitHub (pinned to 908ec23eda)
Solutions
- Authenticate the request with a valid user or app token.
- Ensure the caller is signed in before invoking the video generation driver.
When it happens
Trigger: Thrown at src/backend/drivers/ai-video/providers/together/TogetherVideoProvider.ts:117 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Authentication and authorization failures — expired tokens, bad credentials, and missing scopes.
AI-assisted analysis of HeyPuter/puter@908ec23eda (2026-08-12).
Data as JSON: /api/errors/87ab71026e102309.
Report an issue: GitHub.