FastAPI's detail has two shapes, and the second one shows your users [object Object]
A user hit a validation error on a form and the page told them: [object Object] The frontend line responsible is one you have written, probably today: errorEl.textContent = data.detail || "Something went wrong" That…