youtube plugin: activation fails

Since yesterday, I have been struggeling to get the youtube plugin re-activated, after a factory reset.

When I try, one of the two things happens:

  • I seem to successfully activate the plugin by entering the code, but when I enter the plugin, it says that it is not authorized, even though in the Google device overview of authorized devices, I can see it.

In the syslog I see

2019-08-11T10:58:43.800Z - error: Access Not Configured. YouTube Data API has not been used in project 119103001349 before or it is disabled. Enable it by visiting console.developers.google.com/a … 9103001349 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Error: Access Not Configured. YouTube Data API has not been used in project 119103001349 before or it is disabled. Enable it by visiting console.developers.google.com/a … 9103001349 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
at Request._callback (/data/plugins/music_service/youtube/node_modules/google-auth-library/lib/transporters.js:85:15)
at Request.self.callback (/data/plugins/music_service/youtube/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/data/plugins/music_service/youtube/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (/data/plugins/music_service/youtube/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

  • When I try again, Google tells me “wrong code, try again”. But of course, the code offered by the plugin does not change.

Yesterday, before the factory reset, it seems to have worked.

In /var/log/volumio.log I see the message
2019-08-11T10:51:17.610Z - info: Authorization pending, polling again in 5 seconds.
2019-08-11T10:51:23.704Z - info: Authorization pending, polling again in 5 seconds.
2019-08-11T10:51:29.810Z - info: Authorization pending, polling again in 5 seconds.
2019-08-11T10:51:35.905Z - info: Authorization pending, polling again in 5 seconds.

repeating itself even after removing the plugin

Can anyone hint at what I can do?

I see this is an old issue and has been reported on Github by April 2018. I am a bit concerned, that nothing seems to have happened since to fix this, and a fork of the plugin which works without the API key seems to be subject to daily limits with regards to unauthorized access