logger.debug("{} : {}", statusMessage, jsonData);
}
} catch (IOException e) {
- statusMessage = e.getMessage();
+ statusMessage = String.format("@text/offline.comm-error-ioexception [ \"%s\",\"%d\" ]", e.getMessage(),
+ RECONNECT_DELAY_MIN);
+ scheduleReconnectJob(RECONNECT_DELAY_MIN);
} catch (OpenUVException e) {
if (e.isQuotaError()) {
LocalDateTime nextMidnight = LocalDate.now().plusDays(1).atStartOfDay().plusMinutes(2);
offline.config-error-invalid-refresh = Parameter 'refresh' must be higher than 3 minutes to stay in free API plan.
offline.comm-error-quota-exceeded = Quota Exceeded, going OFFLINE for today, will retry at : {0}
offline.comm-error-faultly-service = Service not responding, will reconnect in {0} minutes
+offline.comm-error-ioexception = IOException : `{0}`, will reconnect in {1} minutes
offline.invalid-json = Invalid JSON received when calling `{0}`
offline.api-key-not-recognized = Service error while API key is known correct, will reconnect in {0} minutes