document.addEventListener("turbo:fetch-request-error", (event) => {
const { fetchOptions, error } = event.detail
console.warn("turbo request failed", fetchOptions?.url, error)
})
document.addEventListener("turbo:submit-end", (event) => {
const { success, fetchResponse } = event.detail
if (!success) console.warn("turbo submit failed", fetchResponse?.status)
})
You’ll eventually hit non-200 responses or network flakiness. Hook Turbo events to log failures (and optionally show a toast). This is a pragmatic production addition that helps debugging without adding heavy tooling.