From f1a04aee920db2f95e655f6b4645bdfa7e19fe30 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Fri, 4 Sep 2026 14:20:11 +0800 Subject: [PATCH] fix: add missing project_id to extract-voice FormData Backend voices.py:541 requires project_id as a mandatory Form field, but the frontend FormData only appended 'file', causing FastAPI to return 422 Unprocessable Entity. Added formData.append('project_id', 'default') to satisfy the backend validation. --- apps/web/src/api/tts/jobs.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/api/tts/jobs.ts b/apps/web/src/api/tts/jobs.ts index 3bc6d4ab7..19653024a 100644 --- a/apps/web/src/api/tts/jobs.ts +++ b/apps/web/src/api/tts/jobs.ts @@ -81,6 +81,7 @@ export const extractVideoVoice = async ( ): Promise<{ asset_id: string; duration: number }> => { const formData = new FormData() formData.append("file", file) + formData.append("project_id", "default") return new Promise((resolve, reject) => { const xhr = new XMLHttpRequest() -- 2.54.0