How to stop Meteor "three strikes and you're out" server restarts?


#1

I noticed if there’s an exception being thrown in the server, it will restart twice more. This is a big problem when failing to authorize on an API, as some will lock you out after three failures. Is there a way to make it so Meteor will just stop after the very first server-side exception and not try to restart?


#2

To be clear, you’re referring to the development runner? meteor run is not designed for use in production.


#3

I know that. I’m not running this in production.


#4

Do you know how to catch these exceptions? You probably don’t want API failures to crash your server in production either (unless it’s part of initializing the server). I can help if you show what your API call looks like.


#5

Yeah, I know how to catch exceptions. I don’t remember if catching them stops the 3 automatic server restarts. I’ll give it a shot