this.headers = thingConfig.headers;
fallbackEncoding = thingConfig.encoding;
- future = executor.scheduleWithFixedDelay(this::refresh, 0, thingConfig.refresh, TimeUnit.SECONDS);
+ future = executor.scheduleWithFixedDelay(this::refresh, 1, thingConfig.refresh, TimeUnit.SECONDS);
logger.trace("Started refresh task for URL '{}' with interval {}s", url, thingConfig.refresh);
}
response.exceptionally(e -> {
if (e instanceof HttpAuthException) {
if (isRetry) {
- logger.warn("Retry after authentication failure failed again for '{}', failing here", uri);
+ logger.warn("Retry after authentication failure failed again for '{}', failing here", uri);
} else {
AuthenticationStore authStore = httpClient.getAuthenticationStore();
Authentication.Result authResult = authStore.findAuthenticationResult(uri);