throw er; // Unhandled 'error' event
^
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at SongsClient.<anonymous> (/home/server/ngmusicbot_test/node_modules/genius-lyrics/dist/songs/client.js:47:37)
at Generator.next (<anonymous>)
at fulfilled (/home/server/ngmusicbot_test/node_modules/genius-lyrics/dist/songs/client.js:5:58)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at processTicksAndRejections (node:internal/process/task_queues:85:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```
This occurs when running the bot on hosts that are commonly blocked by Genius or Cloudflare. The try catch block doesn't prevent the error.
See issue here: https://github.com/zyrouge/node-genius-lyrics/issues/41