octobercms/october · error · Error
Snackbar options.timeout cannot be higher than 8000
Error message
Snackbar options.timeout cannot be higher than 8000
What it means
Range validation in the Snackbar's validateOptions helper: a numeric timeout above the 8000ms ceiling is rejected to keep snackbars from lingering indefinitely. The caller supplied a valid number that exceeds the allowed maximum.
Solutions
- Use a timeout of at most 8000ms
- Clamp or cap configured durations to the allowed 2000-8000 window
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/assets/js/october/october.snackbar.js:46 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/276ba7b855f19b7d.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/assets/js/october/october.snackbar.js:46
}
if (options.replace !== undefined) {
if (typeof options.replace !== 'number') {
throw new Error('Snackbar options.replace must be a number');
}
}
if (options.timeout !== undefined) {
if (typeof options.timeout !== 'number') {
throw new Error('Snackbar options.timeout must be a number');
}
if (options.timeout < 2000) {
throw new Error('Snackbar options.timeout cannot be lower than 2000');
}
if (options.timeout > 8000) {
throw new Error('Snackbar options.timeout cannot be higher than 8000');
}
}
if (options.action !== undefined) {
if (typeof options.action !== 'object') {
throw new Error('Snackbar options.action must be an object');
}
if (typeof options.action.label !== 'string') {
throw new Error('Snackbar options.action.label must be a string');
}
if (typeof options.action.callback !== 'function') {
throw new Error('Snackbar options.action.callback must be a function');
}
}
}
View on GitHub (pinned to b608633a7e)