diegosouzapw/OmniRoute · error
[HOT_RELOAD] Failed to parse persisted settings field "${fie
Error message
[HOT_RELOAD] Failed to parse persisted settings field "${field}": What it means
Error "[HOT_RELOAD] Failed to parse persisted settings field "${field}":" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/config/runtimeSettings.ts:127
if (value && typeof value === "object") {
return Object.fromEntries(
Object.keys(value as JsonRecord)
.sort((left, right) => left.localeCompare(right))
.map((key) => [key, canonicalize((value as JsonRecord)[key])])
);
}
return value;
}
function parseStoredJson(value: unknown, field: string): unknown {
if (typeof value !== "string") return value;
try {
return JSON.parse(value);
} catch (error) {
console.warn(
`[HOT_RELOAD] Failed to parse persisted settings field "${field}":`,
error instanceof Error ? error.message : error
);
return null;
}
}
function normalizeStringArray(value: unknown): string[] {
if (!Array.isArray(value)) return [];
return Array.from(
new Set(
value
.map((entry) => (typeof entry === "string" ? entry.trim() : ""))
.filter((entry) => entry.length > 0)
)
);
}View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/config/runtimeSettings.ts:127 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/4879c41d54ab1852.
Report an issue: GitHub.