different-ai/openwork · error
HTTP ${response.status}
Error message
HTTP ${response.status} What it means
Error "HTTP ${response.status}" thrown in different-ai/openwork.
Source
Thrown at apps/desktop/electron/runtime.mjs:703
});
});
}
async function fetchJson(url, options = {}, timeoutMs = 3000) {
const controller = new AbortController();
const timer = setTimeout(() => controller.abort(), timeoutMs);
try {
// loopback-fetch: fetchJson callers pass runtime-managed 127.0.0.1 server URLs.
const response = await fetch(url, {
...options,
signal: controller.signal,
headers: {
Accept: "application/json",
...(options.headers ?? {}),
},
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return await response.json();
} finally {
clearTimeout(timer);
}
}
export function resolveUserEnvFilePath(env = process.env) {
return openworkEnvStorePath({ env });
}
const USER_ENV_KEY_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/;
const USER_ENV_RESERVED_PREFIXES = ["OPENWORK_", "OPENCODE_"];
// Synchronous, best-effort; absent or malformed returns {}. Reserved prefixes
// are stripped so a tampered file can never shadow OPENWORK_* / OPENCODE_*.
function loadUserEnvFile(env = process.env) {
try {View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at apps/desktop/electron/runtime.mjs:703 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/b44495f019a18603.
Report an issue: GitHub.