different-ai/openwork · error
Failed to update MCP connection (${response.status}).
Error message
Failed to update MCP connection (${response.status}). What it means
Error "Failed to update MCP connection (${response.status})." thrown in different-ai/openwork.
Source
Thrown at ee/apps/den-web/app/(den)/dashboard/_components/mcp-connections-data.tsx:792
});
}
export function useUpdateMcpConnection() {
const queryClient = useQueryClient();
const { orgId, runReauthableAction } = useOrgDashboard();
return useMutation({
mutationFn: async (input: UpdateMcpConnectionInput): Promise<UpdatedMcpConnection> => {
let updated: UpdatedMcpConnection | null = null;
await runReauthableAction("update-mcp-connection", async () => {
const { connectionId, ...body } = input;
const { response, payload } = await requestJson(
`/v1/mcp-connections/${encodeURIComponent(connectionId)}`,
{ method: "PUT", headers: getOrgScopeHeaders(requireOrgId(orgId)), body: JSON.stringify(body) },
30000,
);
if (!response.ok) {
throw getRequestError(payload, response, `Failed to update MCP connection (${response.status}).`);
}
updated = payload as UpdatedMcpConnection;
});
if (!updated) throw new Error("Update MCP connection response was incomplete.");
return updated;
},
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: mcpConnectionQueryKeys.all });
},
});
}
export function useReviewMcpIssuer() {
const queryClient = useQueryClient();
const { orgId, runReauthableAction } = useOrgDashboard();
return useMutation({
mutationFn: async (input: {View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/_components/mcp-connections-data.tsx:792 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/730ab49b3e343824.
Report an issue: GitHub.