Kong/insomnia · error · Error
currently "clear" is not supported for the timeline
Error message
currently "clear" is not supported for the timeline
What it means
Explicit not-supported guard on the console.clear implementation of the scripting environment's Console object: scripts calling insomnia.console.clear() (or console.clear) always fail, because clearing timeline log output is intentionally unimplemented in the script sandbox.
Solutions
- Remove console.clear() from pre-request/after-response scripts
- Filter or clear the timeline via the UI instead
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at packages/insomnia-scripting-environment/src/objects/console.ts:114 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26).
Data as JSON: /api/errors/009b8bb77b1528a6.
Report an issue: GitHub.
Appendix: source
Thrown at packages/insomnia-scripting-environment/src/objects/console.ts:114
info = (...values: any[]) => {
this.printLog(this.rows, 'info', ...values);
};
/**
* Logs the provided values to the console with a log level of 'error'.
*
* @param values - The values to be logged. Accepts any number of arguments of any type.
*/
error = (...values: any[]) => {
this.printLog(this.rows, 'error', ...values);
};
/**
* Clears the console output for the specified log level.
* This method is currently not supported.
*/
clear = (_level: LogLevel, _message?: any, ..._optionalParams: any[]) => {
throw new Error('currently "clear" is not supported for the timeline');
};
/** @ignore */
dumpLogs = () => {
return this.rows.map(row => JSON.stringify(row) + '\n').join('\n');
};
/** @ignore */
dumpLogsAsArray = () => {
return this.rows.map(row => JSON.stringify(row) + '\n');
};
}
/** @ignore */
let builtInConsole = new Console();
/** @ignore */
export function getExistingConsole() {
return builtInConsole;View on GitHub (pinned to d9bb2b0142)