Error in makeSummary: invalid json response body at https://www.google.com/sorry/index?continue=https://www.youtube.com/watch%3FprettyPrint%3Dfalse%26v%3D5A8UUovaSb8%26pbj%3D1&q=EgQDgW_cGKyZ9bEGIjDIbez6kcN4Ofhrrbcfy2T6brx1CtlOvEP6CvOF0rtGbElS0CP3ISqeUAkwFsUF2MgyAXJaAUM reason: Unexpected token '<', "<!DOCTYPE "... is not valid JSON #97
Labels
bug
Something isn't working
Describe the bug
Error in makeSummary: invalid json response body at https://www.google.com/sorry/index?continue=https://www.youtube.com/watch%3FprettyPrint%3Dfalse%26v%3D5A8UUovaSb8%26pbj%3D1&q=EgQDgW_cGKyZ9bEGIjDIbez6kcN4Ofhrrbcfy2T6brx1CtlOvEP6CvOF0rtGbElS0CP3ISqeUAkwFsUF2MgyAXJaAUM reason: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Until a few days ago, it was working fine, but since 4-5 days ago, this error has been coming up. If you remove youtubei, that error does not appear. However, because I need a transcript, I have to use youtubei, so I am reporting this issue.
my function
const youtube = new Client();
async function makeSummary(req,res){
const { videoId, lang, ask, email } = req.body;
.....
const transcript = await youtube.getVideoTranscript(videoId);
console.log(transcript,'transcript')
}
result
Error in makeSummary: invalid json response body at https://www.google.com/sorry/index?continue=https://www.youtube.com/watch%3FprettyPrint%3Dfalse%26v%3D5A8UUovaSb8%26pbj%3D1&q=EgQDgW_cGKyZ9bEGIjDIbez6kcN4Ofhrrbcfy2T6brx1CtlOvEP6CvOF0rtGbElS0CP3ISqeUAkwFsUF2MgyAXJaAUM reason: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
The text was updated successfully, but these errors were encountered: