different-ai/openwork · error
Failed to save the OAuth client (${response.status}).
Error message
Failed to save the OAuth client (${response.status}). What it means
Error "Failed to save the OAuth client (${response.status})." thrown in different-ai/openwork.
Source
Thrown at ee/apps/den-web/app/(den)/dashboard/_components/mcp-connections-data.tsx:1048
const clientId = input.clientId?.trim();
const clientSecret = input.clientSecret?.trim();
const tenantId = input.tenantId?.trim();
const { response, payload } = await requestJson(
`/v1/oauth-providers/${encodeURIComponent(input.providerId)}/client`,
{
method: "POST",
headers: getOrgScopeHeaders(requireOrgId(orgId)),
body: JSON.stringify({
...(clientId ? { clientId } : {}),
...(clientSecret ? { clientSecret } : {}),
...(tenantId ? { tenantId } : {}),
features: input.features,
}),
},
20000,
);
if (!response.ok) {
throw getRequestError(payload, response, `Failed to save the OAuth client (${response.status}).`);
}
});
},
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: mcpConnectionQueryKeys.all });
},
});
}
export function useNativeProviderClient(providerId: string, enabled: boolean) {
const { orgId, runReauthableAction } = useOrgDashboard();
return useQuery({
enabled: enabled && Boolean(orgId),
queryKey: mcpConnectionQueryKeys.nativeProviderClient(orgId, providerId),
retry: false,
queryFn: async (): Promise<NativeProviderClient> => {
let client: NativeProviderClient | null = null;View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/_components/mcp-connections-data.tsx:1048 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01).
Data as JSON: /api/errors/56aed6a7cdd2e796.
Report an issue: GitHub.