fix(scripts): extract-from-douyin 异常路径全部返回业务码,杜绝 500 INTERNAL_ERROR #1963
Reference in New Issue
Block a user
Delete Branch "fix/extract-douyin-error-handling"
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?
问题
POST /api/v1/scripts/extract-from-douyin 在以下场景返回 500 INTERNAL_ERROR,前端无法区分业务错误:
修复
测试
tests/unit/test_extract_from_douyin_errors.py(8 个失败场景断言)tests/unit/test_scripts_ai.py(mock os.path.isfile/getsize)顺带验证
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #1963 已关闭或合并,对应的预览环境已被清理。