You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Sometimes when application is stoped by SIGTERM or SIGINT unhandled rejection occurs in io-adapter.ts server is undefined:
public close(server: any) {
isFunction(server.close) && server.close();
}
Err:
TypeError: Cannot read property 'close' of undefined
at Server.close (/home/ladin/rapid/git/ra-web-core-be/node_modules/socket.io/lib/index.js:485:15)
at IoAdapter.close (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/websockets/adapters/io-adapter.js:53:59)
at MapIterator.Promise.all.iterare_1.default.map [as iteratee] (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/websockets/socket-module.js:48:114)
at MapIterator.next (/home/ladin/rapid/git/ra-web-core-be/node_modules/iterare/src/map.ts:11:39)
at IteratorWithOperators.next (/home/ladin/rapid/git/ra-web-core-be/node_modules/iterare/src/iterate.ts:21:28)
at Function.all ()
at SocketModule.close (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/websockets/socket-module.js:48:23)
at NestMicroservice.closeApplication (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/microservices/nest-microservice.js:97:55)
at NestMicroservice.close (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/microservices/nest-microservice.js:85:43)
at
at process._tickDomainCallback (internal/process/next_tick.js:228:7) }
Expected behavior
Test if server instance is initialized
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Cannot read property 'close' of undefined
Current behavior
Sometimes when application is stoped by SIGTERM or SIGINT unhandled rejection occurs in io-adapter.ts server is undefined:
public close(server: any) {
isFunction(server.close) && server.close();
}
Err:
TypeError: Cannot read property 'close' of undefined
at Server.close (/home/ladin/rapid/git/ra-web-core-be/node_modules/socket.io/lib/index.js:485:15)
at IoAdapter.close (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/websockets/adapters/io-adapter.js:53:59)
at MapIterator.Promise.all.iterare_1.default.map [as iteratee] (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/websockets/socket-module.js:48:114)
at MapIterator.next (/home/ladin/rapid/git/ra-web-core-be/node_modules/iterare/src/map.ts:11:39)
at IteratorWithOperators.next (/home/ladin/rapid/git/ra-web-core-be/node_modules/iterare/src/iterate.ts:21:28)
at Function.all ()
at SocketModule.close (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/websockets/socket-module.js:48:23)
at NestMicroservice.closeApplication (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/microservices/nest-microservice.js:97:55)
at NestMicroservice.close (/home/ladin/rapid/git/ra-web-core-be/node_modules/@nestjs/microservices/nest-microservice.js:85:43)
at
at process._tickDomainCallback (internal/process/next_tick.js:228:7) }
Expected behavior
Test if server instance is initialized
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: