fix: #1809 补充 对口型接口参数校验返回400而非500 #1818
Reference in New Issue
Block a user
Delete Branch "fix/lipsync-error-handling-1809"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
PR #1814 合并后,前端还在用旧参数调 /api/v1/lipsync/jobs,后端返回 500 而非 400/422。
原因:路由层只 catch 了 CosyVoiceError 和 MediaKitError,其他异常(ValueError、voice_clone_repo 查询失败、DI 依赖异常等)被全局 general_exception_handler 捕获后返回 500。
改动
不改的
测试
Relates #1809
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #1818 已关闭或合并,对应的预览环境已被清理。