Livestream via Youtube not working


#1

I’m trying to get the livestream with Youtube to work. I almost had it working but i kept receiving an error from the Google Youtube API that my user is not allowed to livestream. So i created a new API key and new Oauth2 credentials in a other Google account. After that i removed the apikey en oauth2 credentials in the RocketChat settings and set the new API key and oauth2 credentials i created. When i now press the “Broadcast my Camera” button i receive a “Internal Server Error”. When i check the RocketChat log i see the following:

Exception while invoking method 'livestreamGet' Error: invalid_grant at createError (/snap/rocketchat-server/1321/programs/server/npm/node_modules/meteor/rocketchat_livestream/node_modules/axios/lib/core/createError.js:16:15) at settle (/snap/rocketchat-server/1321/programs/server/npm/node_modules/meteor/rocketchat_livestream/node_modules/axios/lib/core/settle.js:18:12) at IncomingMessage.handleStreamEnd (/snap/rocketchat-server/1321/programs/server/npm/node_modules/meteor/rocketchat_livestream/node_modules/axios/lib/adapters/http.js:201:11) 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._tickDomainCallback (internal/process/next_tick.js:218:9) => awaited here: at Function.Promise.await (/snap/rocketchat-server/1321/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) at Promise.asyncApply (/snap/rocketchat-server/1321/programs/server/packages/rocketchat_livestream.js:219:44) at /snap/rocketchat-server/1321/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40 => awaited here: at Function.Promise.await (/snap/rocketchat-server/1321/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) at Promise.asyncApply (/snap/rocketchat-server/1321/programs/server/packages/rocketchat_livestream.js:453:27) at /snap/rocketchat-server/1321/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:u5408: