paperclipai/paperclip · error · HttpError
oauth_redirect_limit
oauth_redirect_limit
Error message
Remote OAuth endpoint redirected too many times
What it means
Loop bound in fetchRemoteHttpUrl: the chain exceeded MAX_REMOTE_HTTP_REDIRECTS without landing on a final response. Catches redirect loops and open-redirect abuse on remote OAuth/token endpoints; the looping remote endpoint is at fault.
Solutions
- Redirect loop contacting the OAuth endpoint. Check the provider metadata URLs and any intermediate proxies for redirect cycles.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at server/src/services/tool-access.ts:1407 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@3f1d897a7c (2026-08-18).
Data as JSON: /api/errors/de8f8437ac4ca5d4.
Report an issue: GitHub.
Appendix: source
Thrown at server/src/services/tool-access.ts:1789
title: tool.title ?? null,
description: tool.description ?? null,
inputSchema: tool.inputSchema ?? { type: "object", properties: {} },
annotations: tool.annotations ?? {},
})),
};
}
function toStdioCommandTemplate(
row: typeof toolStdioCommandTemplates.$inferSelect,
): ToolStdioCommandTemplate {
return {
id: row.id,
companyId: row.companyId,
templateId: row.templateKey,
name: row.name,
title: row.name,
description: row.description,
status: row.status,
source: "admin",
command: row.command,
args: row.args ?? [],
envKeys: row.envKeys ?? [],
tools: (row.tools ?? [])
.map((tool) => normalizeToolDescriptor(tool))
.filter((tool): tool is McpToolDescriptor => Boolean(tool))
.map((tool) => ({
name: tool.name,
title: tool.title ?? null,
description: tool.description ?? null,
inputSchema: tool.inputSchema ?? { type: "object", properties: {} },
annotations: tool.annotations ?? {},
})),
createdByAgentId: row.createdByAgentId,
createdByUserId: row.createdByUserId,
disabledAt: row.disabledAt,
createdAt: row.createdAt,View on GitHub (pinned to 3f1d897a7c)