balena-io-experimental / meetbot

A Google Meet bot to make meetings frictionless
GNU Affero General Public License v3.0
32 stars 13 forks source link

Handle Google API service unavailable error #49

Open vipulgupta2048 opened 2 years ago

vipulgupta2048 commented 2 years ago

On one meetbot run, the docs transcript was not created and the log is below. Maybe Somo and Andrei can look into handling this for next time.

Running caption feature..
07.12.21 19:49:27 (+0530)  main  Attached Chat Saver
07.12.21 19:49:27 (+0530)  main  Introducing hubot in the meet - feature
07.12.21 19:49:27 (+0530)  main  deactivating Jellyfish integration because of missing JELLYFISH_AUTH_TOKEN env
07.12.21 19:49:27 (+0530)  main  Running raw caption feature..
07.12.21 19:49:27 (+0530)  main  Running record feature..
07.12.21 19:49:27 (+0530)  main  Running storage feature..
07.12.21 19:49:27 (+0530)  main  Attached Transcript Streamer
07.12.21 19:49:27 (+0530)  main  Current bot queue size: 1
07.12.21 19:49:28 (+0530)  main  typing out email
07.12.21 19:49:30 (+0530)  main  typing out password
07.12.21 19:49:31 (+0530)  main  doing 2FA login
07.12.21 19:49:42 (+0530)  main  going to Meet after signing in
07.12.21 19:49:46 (+0530)  main  turn off cam using Ctrl+E
07.12.21 19:49:49 (+0530)  main  turn off mic using Ctrl+D
07.12.21 19:49:52 (+0530)  main  Changing layout to Spotlight mode
07.12.21 19:49:57 (+0530)  main  turn on captions
07.12.21 19:49:57 (+0530)  main  Chatlog joined a meeting https://meet.google.com/ipq-rsdm-vgm
07.12.21 19:49:58 (+0530)  main  Joined the meeting:  https://meet.google.com/ipq-rsdm-vgm
07.12.21 19:49:58 (+0530)  main  queuing: starting the recording...
07.12.21 19:49:58 (+0530)  main  (node:33) UnhandledPromiseRejectionWarning: Error: The service is currently unavailable.
07.12.21 19:49:58 (+0530)  main      at Gaxios._request (/usr/src/node_modules/gaxios/build/src/gaxios.js:129:23)
07.12.21 19:49:58 (+0530)  main      at runMicrotasks (<anonymous>)
07.12.21 19:49:58 (+0530)  main      at processTicksAndRejections (internal/process/task_queues.js:95:5)
07.12.21 19:49:58 (+0530)  main      at async OAuth2Client.requestAsync (/usr/src/node_modules/google-auth-library/build/src/auth/oauth2client.js:368:18)
07.12.21 19:49:58 (+0530)  main  (Use `node --trace-warnings ...` to show where the warning was created)
07.12.21 19:49:58 (+0530)  main  (node:33) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
07.12.21 19:49:58 (+0530)  main  (node:33) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
07.12.21 19:49:59 (+0530)  main  PAGE LOG: Autofocus processing was blocked because a document already has a focused element.
07.12.21 19:49:59 (+0530)  main  Meeting ipq-rsdm-vgm (2021-12-07T14:19:57.962Z) Chat is available at 
07.12.21 19:49:59 (+0530)  main  https://docs.google.com/document/d/1hJSzybzqc7s5VZUZa7EtxkrkVlZls7DG6yJpiHJRjhE
07.12.21 19:49:59 (+0530)  main  setting chat transcript url tohttps://docs.google.com/document/d/1hJSzybzqc7s5VZUZa7EtxkrkVlZls7DG6yJpiHJRjhE
07.12.21 19:50:00 (+0530)  main  open people list to activate feature
07.12.21 19:50:01 (+0530)  main  PAGE LOG: [stenographer] loaded - Debug: false
07.12.21 19:50:01 (+0530)  main  PAGE LOG: [stenographer] init called
07.12.21 19:50:01 (+0530)  main  captions are on
07.12.21 19:50:02 (+0530)  main  streaming captions
07.12.21 19:50:03 (+0530)  main  open chat section and send a message to all
07.12.21 19:50:05 (+0530)  main  close chat section again
07.12.21 19:50:07 (+0530)  main  starting the recording...
07.12.21 19:50:15 (+0530)  main  open chat section and send a message to all
07.12.21 19:50:19 (+0530)  main  close chat section again
builder555 commented 2 years ago

@vipulgupta2048 I should have some time this Wendesday to take a look.