Skip to content

Error when YoutubeTranscript is not available #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
YasogaN opened this issue Apr 17, 2025 · 0 comments
Open

Error when YoutubeTranscript is not available #5

YasogaN opened this issue Apr 17, 2025 · 0 comments

Comments

@YasogaN
Copy link

YasogaN commented Apr 17, 2025

Terminal output

 ✓ Starting...
 ✓ Ready in 2.2s
 ○ Compiling / ...
 ✓ Compiled / in 2.4s (945 modules)
 GET / 200 in 2691ms
 ✓ Compiled in 206ms (433 modules)
 ○ Compiling /api/summarize ...
 ✓ Compiled /api/summarize in 1066ms (1130 modules)
(node:25372) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
 GET /api/summarize 200 in 1629ms
 GET /api/summarize 200 in 1874ms
 ○ Compiling /summary/[videoUrl] ...
 ✓ Compiled /summary/[videoUrl] in 763ms (1485 modules)
 GET /summary/aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g_dj1HeTgzNmlYME5nZw?lang=en&mode=video&model=gemini 200 in 1792ms
[INFO] Processing video request {
  "videoId": "Gy836iX0Ngg",
  "language": "en",
  "mode": "video",
  "aiModel": "gemini"
}
[INFO] Using Google Gemini model for generation...
[INFO] Processing video request {
  "videoId": "Gy836iX0Ngg",
  "language": "en",
  "mode": "video",
  "aiModel": "gemini"
}
[INFO] Using Google Gemini model for generation...
[INFO] Attempting to fetch YouTube transcript for video Gy836iX0Ngg
[INFO] Attempting to fetch YouTube transcript for video Gy836iX0Ngg
[INFO] YouTube transcript not available, falling back to Whisper... {
  "error": "[YoutubeTranscript] 🚨 Transcript is disabled on this video (Gy836iX0Ngg)"
}
[INFO] Fetching video info from YouTube
[INFO] YouTube transcript not available, falling back to Whisper... {
  "error": "[YoutubeTranscript] 🚨 Transcript is disabled on this video (Gy836iX0Ngg)"
}
[INFO] Fetching video info from YouTube
[ERROR] Failed to get video info: {
  message: undefined,
  status: undefined,
  stack: undefined,
  cause: undefined,
  details: undefined,
  response: undefined
}
[ERROR] Failed to get video info: {
  message: undefined,
  status: undefined,
  stack: undefined,
  cause: undefined,
  details: undefined,
  response: undefined
}
[ERROR] Failed to get transcript: {
  message: undefined,
  status: undefined,
  stack: undefined,
  cause: undefined,
  details: undefined,
  response: undefined
}
[ERROR] Failed to get transcript: {
  message: undefined,
  status: undefined,
  stack: undefined,
  cause: undefined,
  details: undefined,
  response: undefined
}
[ERROR] Error processing video: {
  message: undefined,
  status: undefined,
  stack: 'Error: Failed to process video: Could not extract functions\n' +
    '    at getTranscript (webpack-internal:///(rsc)/./app/api/summarize/route.ts:470:19)\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n' +
    '    at async eval (webpack-internal:///(rsc)/./app/api/summarize/route.ts:525:51)',
  cause: undefined,
  details: undefined,
  response: undefined
}
[ERROR] Error processing video: {
  message: undefined,
  status: undefined,
  stack: 'Error: Failed to process video: Could not extract functions\n' +
    '    at getTranscript (webpack-internal:///(rsc)/./app/api/summarize/route.ts:470:19)\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n' +
    '    at async eval (webpack-internal:///(rsc)/./app/api/summarize/route.ts:525:51)',
  cause: undefined,
  details: undefined,
  response: undefined
}
 POST /api/summarize 200 in 2138ms
 POST /api/summarize 200 in 2139ms

Steps to Reporoduce:

  1. Get a video link which doesn't have a transcription.
  2. Paste video link into UI and start the process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant