Closed is-blackhole closed 1 year ago
Hello :)
I got uncatchable NatsError: CONNECTION_DRAINING exception when shutting down app with app.close() I need it at my tests to cleanup.
NatsError: CONNECTION_DRAINING
To Reproduce Steps to reproduce the behavior: Add to packages/nats-listener/src/main.ts at bootstrap end after await microService.listen();:
await microService.listen();
setTimeout(async() => { logger.log("closing app"); try { await app.close(); } catch (err) { logger.error(err); } logger.log("closed"); }, 10*1000);
Expected behavior App closes, logging "closed";
Screenshots
Looks like app tries to delete consumer via $JS.API.CONSUMER.DELETE .... after drain is called, can you plz take a look?
$JS.API.CONSUMER.DELETE ....
Thanks
fixed
Hello :)
I got uncatchable
NatsError: CONNECTION_DRAINING
exception when shutting down app with app.close() I need it at my tests to cleanup.To Reproduce Steps to reproduce the behavior: Add to packages/nats-listener/src/main.ts at bootstrap end after
await microService.listen();
:Expected behavior App closes, logging "closed";
Screenshots
Looks like app tries to delete consumer via
$JS.API.CONSUMER.DELETE ....
after drain is called, can you plz take a look?Thanks