musistudio/claude-code-router · error
Only http and https URLs can be opened.
Error message
Only http and https URLs can be opened.
What it means
Error "Only http and https URLs can be opened." thrown in musistudio/claude-code-router.
Source
Thrown at packages/electron/src/main/ipc.ts:192
return proxyService.setNetworkCaptureEnabled(Boolean(enabled));
});
ipcMain.handle(IPC_CHANNELS.appSelectPluginDirectory, async (event) => {
const window = BrowserWindow.fromWebContents(event.sender);
const options: OpenDialogOptions = {
buttonLabel: "Select plugin",
properties: ["openDirectory"],
title: "Select plugin directory"
};
const result = window ? await dialog.showOpenDialog(window, options) : await dialog.showOpenDialog(options);
if (result.canceled || result.filePaths.length === 0) {
return undefined;
}
return inspectPluginDirectory(result.filePaths[0]);
});
ipcMain.handle(IPC_CHANNELS.appOpenExternal, async (_event, url: string) => {
const parsed = new URL(url);
if (!["http:", "https:"].includes(parsed.protocol)) {
throw new Error("Only http and https URLs can be opened.");
}
await shell.openExternal(parsed.toString());
});
ipcMain.handle(IPC_CHANNELS.appOpenProfile, async (_event, request: ProfileOpenRequest) => {
const syncedClaudeAppConfig = await syncClaudeAppGatewayConfig(await loadAppConfig());
const profile = findProfileForOpen(syncedClaudeAppConfig.config, request.profileId);
const surface = resolveProfileOpenSurface(profile, request.surface);
const config = profile.agent === CLAUDE_DESIGN_PLUGIN_ID
? withClaudeDesignRuntimePluginConfig(syncedClaudeAppConfig.config)
: syncedClaudeAppConfig.config;
if (profile.agent === CLAUDE_DESIGN_PLUGIN_ID) {
const status = await gatewayService.ensureStarted(config);
if (status.state !== "running") {
throw new Error(status.lastError || "CCR gateway did not start.");
}
logProfileApplyResult(await applyProfileConfig(config));
await deepLinkService.openPluginApp(CLAUDE_DESIGN_PLUGIN_ID);
return {View on GitHub (pinned to 99f24806c6)
When it happens
Trigger: Thrown at packages/electron/src/main/ipc.ts:192 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of musistudio/claude-code-router@99f24806c6 (2026-08-27).
Data as JSON: /api/errors/75565205604b4e95.
Report an issue: GitHub.