boly38 / lo-mqtt-nodejs

Live Objects NodeJS MQTT client
0 stars 0 forks source link

quota reached usecase #13

Closed boly38 closed 6 months ago

boly38 commented 6 months ago

on quota reached, device connection is refused, and we've dirty error msg (promise not catched)

example

[2024-03-15T10:42:58.227] [INFO] LoDevice - mqtts://REDACTED:8883: lo-mqtt-nodejs_21317259520 disconnected.
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was no
t handled with .catch(). The promise rejected with the reason "aborted after 2 retries".] {
  code: 'ERR_UNHANDLED_REJECTION'
}