We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f925e30 + 0b66974 commit ebf0327Copy full SHA for ebf0327
2 files changed
apps/web/src/app/api/transcribe/route.ts
@@ -47,8 +47,7 @@ export async function POST(request: Request) {
47
headers: { 'Content-Type': 'application/json' },
48
body: JSON.stringify({ video_url: url, language }),
49
signal: controller.signal,
50
- });
51
- clearTimeout(timeout);
+ }).finally(() => clearTimeout(timeout));
52
53
if (ytResponse.ok) {
54
const result = await ytResponse.json();
apps/web/src/app/api/video/route.ts
@@ -38,8 +38,7 @@ export async function POST(request: Request) {
38
39
body: JSON.stringify({ video_url: url, language: 'en' }),
40
41
42
43
44
if (response.ok) {
45
const result = await response.json();
0 commit comments