We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e31696 + 1c0b27e commit dabc063Copy full SHA for dabc063
src/main/java/org/embulk/input/sftp/SftpFileInput.java
@@ -266,8 +266,10 @@ public boolean isRetryableException(Exception exception)
266
{
267
if (exception.getCause() != null && exception.getCause().getCause() != null) {
268
Throwable cause = exception.getCause().getCause();
269
- if (cause.getMessage() != null && cause.getMessage().contains("Auth fail")) {
270
- throw new ConfigException(exception);
+ if (cause.getMessage() != null) {
+ if (cause.getMessage().contains("Auth fail") || cause.getMessage().contains("Connection refused")) {
271
+ throw new ConfigException(exception);
272
+ }
273
}
274
275
if (exception instanceof ConfigException) {
0 commit comments