svrooij / node-sonos-ts

:speaker: Sonos control library, use this library in your own appliction.
https://sonos-ts.svrooij.io/
MIT License
84 stars 18 forks source link

UnhandledPromiseRejection #81

Closed hklages closed 3 years ago

hklages commented 3 years ago
(node:16948) UnhandledPromiseRejectionWarning: Error: No subscription id received
    at RenderingControlService.subscribeForEvents (C:\Users\hekla\Development\node-red-contrib-sonos-events\node_modules\@svrooij\sonos\lib\services\base-service.js:298:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async EventEmitter.<anonymous> (C:\Users\hekla\Development\node-red-contrib-sonos-events\node_modules\@svrooij\sonos\lib\services\base-service.js:280:21)
(node:16948) 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: 5)

Maybe because the await this.subscribeForEvents() is not in an async function?

svrooij commented 3 years ago

When does this happen? I need a bit more detail about the players, how come it isn’t available?

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 2.2.0-beta.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

hklages commented 3 years ago

Thanks!

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 2.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: