I am getting a cryptic error when trying to fetch a youtube video by it\'s Id:
TypeError: Cannot read property \'0\' of undefined
I previously h
Recently, it has been reported that the recent googleapis for node.js has some errors. I had confirmed them for Gmail API, Drive API and Sheets API. Also at Youtube API, I found the same situation. I confirmed that for Youtube API, your script didn't work for v27.0.0, v26.0.0 and v25.0.0.
When I used v24.0.0, it worked fine.
So, can you downgrade to v24.0.0 and try it again? At that time, please modify from const { google } = require('googleapis');
to const google = require('googleapis');
I believe that these errors will be removed by the future update.
If this information is not useful for you, I'm sorry.