When I enter a youtube URL and hit enter, I get below error:
youtube-transcript.esm.js:73 Uncaught (in promise) Error: [YoutubeTranscript] 🚨 TypeError: Failed to fetch
at new YoutubeTranscriptError (youtube-transcript.esm.js:73:1)
at Function.<anonymous> (youtube-transcript.esm.js:144:1)
at step (youtube-transcript.esm.js:62:1)
at Object.throw (youtube-transcript.esm.js:43:1)
at rejected (youtube-transcript.esm.js:34:1)
I am creating an extension using react where I am calling below code for generating transcript from youtube video:
When I enter a youtube URL and hit enter, I get below error: