Files
DeepTutor/web/components/settings
Wen Li Hong 9a80d3477f fix(voice): surface the HTTP status when a preview error body is not JSON
A reverse proxy can replace the backend's JSON error with an HTML page;
VoicePreviewPanel parsed the error body unconditionally, so the settings
page showed the raw JSON syntax error ("Unexpected token '<'...") from
#1951 instead of anything actionable. Parse the body defensively and fall
back to a localized 'Voice preview failed (HTTP <status>).' message that
keeps the HTTP status visible. Adds the message to the locales that
already translate the voice preview strings and a regression test.
2026-10-15 11:51:22 +08:00
..
2026-10-08 11:34:42 +08:00
2026-09-21 02:30:40 +08:00
2026-09-21 02:30:40 +08:00
2026-09-21 02:30:40 +08:00
2026-09-02 04:09:11 +08:00
2026-09-21 02:30:40 +08:00
2026-09-03 01:38:54 +08:00
2026-09-21 02:30:40 +08:00
2026-10-04 21:35:00 +08:00
2026-10-08 11:34:42 +08:00
2026-09-21 02:30:40 +08:00
2026-09-21 02:30:40 +08:00
2026-09-02 04:09:11 +08:00
2026-09-02 04:09:11 +08:00
2026-09-21 02:30:40 +08:00
2026-09-24 09:59:56 +08:00
2026-06-17 00:56:27 +08:00