Join GitHub today
NestJS seems to fail silently #287
I'm submitting a...
I'm starting a new project using Nest and TypeORM. I have a few modules, a few entities, nothing too complicated yet.
Nest should start the server or throw an error and its stack.
Minimal reproduction of the problem with instructions
Use the example repo available here https://github.com/nestjs/nest/tree/master/examples/05-sql-typeorm
Then (I'm guessing) make a mistake in a new entity.
What is the motivation / use case for changing the behavior?
@kamilmysliwiec I encountered same behavior when provider factory threw error. Please note the example code
This resulted in
After some investigation I noticed this does happens if service being provided is being injected elsewhere and does not happen when this isn't the case:
Same here. My DB server was down and Nest just failed silently. After noticing I refactored the provider to throw an error in case of timeout, and the error isn't shown in the
Here is my code:
I just had the same problem again on a Kubernet pod. I forgot to create the Psql pod and ofc Typeorm could not find anything. The only log I have :