Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnhandledPromiseRejectionWarning while pairing #603

Open
willemx opened this issue Apr 17, 2022 · 2 comments
Open

UnhandledPromiseRejectionWarning while pairing #603

willemx opened this issue Apr 17, 2022 · 2 comments

Comments

@willemx
Copy link

willemx commented Apr 17, 2022

While trying to pair a control outlet plug to the gateway, I got this error message on the console:

W20220417-18:13:14.499(2)? (STDERR) (node:6835) UnhandledPromiseRejectionWarning: Error: unexpected response (4.04) to observeScenes(131085): [object Object]
W20220417-18:13:14.499(2)? (STDERR)     at TradfriClient.handleNonSuccessfulResponse (/Users/willem/meteor/ctrlh/node_modules/node-tradfri-client/build/tradfri-client.js:793:32)
W20220417-18:13:14.499(2)? (STDERR)     at TradfriClient.<anonymous> (/Users/willem/meteor/ctrlh/node_modules/node-tradfri-client/build/tradfri-client.js:584:27)
W20220417-18:13:14.500(2)? (STDERR)     at Generator.next (<anonymous>)
W20220417-18:13:14.500(2)? (STDERR)     at /Users/willem/meteor/ctrlh/node_modules/node-tradfri-client/build/tradfri-client.js:8:71
W20220417-18:13:14.500(2)? (STDERR)     at new Promise (<anonymous>)
W20220417-18:13:14.500(2)? (STDERR)     at __awaiter (/Users/willem/meteor/ctrlh/node_modules/node-tradfri-client/build/tradfri-client.js:4:12)
W20220417-18:13:14.500(2)? (STDERR)     at TradfriClient.observeScenes_callback (/Users/willem/meteor/ctrlh/node_modules/node-tradfri-client/build/tradfri-client.js:581:16)
W20220417-18:13:14.500(2)? (STDERR)     at PendingRequest.callback (/Users/willem/meteor/ctrlh/node_modules/node-tradfri-client/build/tradfri-client.js:575:99)
W20220417-18:13:14.501(2)? (STDERR)     at Function.onMessage (/Users/willem/meteor/ctrlh/node_modules/node-coap-client/build/CoapClient.js:635:33)
W20220417-18:13:14.501(2)? (STDERR)     at SocketWrapper.emit (events.js:400:28)
W20220417-18:13:14.501(2)? (STDERR)     at SocketWrapper.emit (domain.js:475:12)
W20220417-18:13:14.501(2)? (STDERR)     at Socket.<anonymous> (/Users/willem/meteor/ctrlh/node_modules/node-coap-client/build/lib/SocketWrapper.js:14:18)
W20220417-18:13:14.501(2)? (STDERR)     at Socket.emit (events.js:400:28)
W20220417-18:13:14.501(2)? (STDERR)     at Socket.emit (domain.js:475:12)
W20220417-18:13:14.502(2)? (STDERR)     at Socket.udp_onMessage (/Users/willem/meteor/ctrlh/node_modules/node-dtls-client/build/dtls.js:195:34)
W20220417-18:13:14.502(2)? (STDERR)     at Socket.emit (events.js:400:28)
W20220417-18:13:14.502(2)? (STDERR) (Use `node --trace-warnings ...` to show where the warning was created)
W20220417-18:13:14.502(2)? (STDERR) (node:6835) 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: 6)
W20220417-18:13:14.503(2)? (STDERR) (node:6835) [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.

@AlCalzone
Copy link
Owner

Is this reproducible? I've had similar reports from time to time, but AFAIK none of them were.

@willemx
Copy link
Author

willemx commented Apr 20, 2022

No, can’t reproduce; second pairing attempt succeeded without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants