-
Notifications
You must be signed in to change notification settings - Fork 486
node:events:356 throw err; // Unhandled 'error' event #52
Description
node.js version = v16.1.0
npm version = 7.13.0
When i start the program, the following error occurs:
Using IoT Hub connection string [HostName=BS-Hub.azure-devices.net;SharedAccessKeyName=service;SharedAccessKey=***=]
monitoring
Using event hub consumer group [monitoring]
Listening on 3000.
node:events:356
throw err; // Unhandled 'error' event
^
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
_context: Error: Invalid handle 0
at Session._get_link (C:\Users\phili\Documents\Schule\BA\temp4\web-apps-node-iot-hub-data-visualization\node_modules\rhea\lib\session.js:724:15)
at Session.on_detach (C:\Users\phili\Documents\Schule\BA\temp4\web-apps-node-iot-hub-data-visualization\node_modules\rhea\lib\session.js:730:10)
at Connection. [as on_detach] (C:\Users\phili\Documents\Schule\BA\temp4\web-apps-node-iot-hub-data-visualization\node_modules\rhea\lib\connection.js:804:30)
at c.dispatch (C:\Users\phili\Documents\Schule\BA\temp4\web-apps-node-iot-hub-data-visualization\node_modules\rhea\lib\types.js:910:33)
at Transport.read (C:\Users\phili\Documents\Schule\BA\temp4\web-apps-node-iot-hub-data-visualization\node_modules\rhea\lib\transport.js:109:36)
at SaslClient.read (C:\Users\phili\Documents\Schule\BA\temp4\web-apps-node-iot-hub-data-visualization\node_modules\rhea\lib\sasl.js:328:26)
at Connection.input (C:\Users\phili\Documents\Schule\BA\temp4\web-apps-node-iot-hub-data-visualization\node_modules\rhea\lib\connection.js:538:35)
at TLSSocket.emit (node:events:365:28)
at addChunk (node:internal/streams/readable:314:12)
at readableAddChunk (node:internal/streams/readable:289:9),
.......
Does anyone know the problem?