express icon indicating copy to clipboard operation
express copied to clipboard

Error handling middleware not being called.

Open Aniket-Patel-swg opened this issue 1 year ago • 1 comments

Screenshot 2024-09-21 104151

here's my app.ts (index.ts contain app.listen part after successful connection with mongo.db); here's test controller. Screenshot 2024-09-21 104216

when hit API with postman, none of the error is showing.

Aniket-Patel-swg avatar Sep 21 '24 05:09 Aniket-Patel-swg

it seems like the above code should work if the routes are placed properly w.r.t its controllers.

Can you provide some more info regarding to which route you are calling and how the routes are related to main router and so on..

VishamberDas-007 avatar Sep 22 '24 15:09 VishamberDas-007

Yes, it's working fine. I accidentally made a mistake in the routes.

Aniket-Patel-swg avatar Oct 27 '24 07:10 Aniket-Patel-swg

Closing this as seems solved :)

UlisesGascon avatar Oct 27 '24 10:10 UlisesGascon

yes, thank you :)

Aniket-Patel-swg avatar Oct 27 '24 14:10 Aniket-Patel-swg