Open flaccid opened 6 years ago
In https://github.com/ndelitski/rancher-alarms/blob/master/src/rancher.es6#L36-L52:
catch (resp) {
throw new Error('RancherClientError: non-200 code response ' + JSON.stringify(resp, null, 4));
}
The exception is caught, but instead of throwing can we retry or something?
Something to be more resilient and prevent rancher-alarms from exiting when it doesn't need to in this case. FYI @ndelitski
The process/container will exit when something like the following is hit. It would be good to add in some exception handling to perhaps retry or simply log and ignore for a period.
It looks like every now and then polling to rancher server might have a transient issue, so it would be good to handle this.