You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2023/11/03 21:59:47 UTC
(tika) 01/01: Add more robust handling for 403 for model downloading
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch fix-403-model
in repository https://gitbox.apache.org/repos/asf/tika.git
commit d02b8e822a9a9b7788022ece7d4c1e20505cd9a4
Author: tallison <ta...@apache.org>
AuthorDate: Fri Nov 3 17:59:32 2023 -0400
Add more robust handling for 403 for model downloading
---
.../test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java | 2 +-
.../src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
index 0fb8fc0ba..18508bd4e 100644
--- a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
+++ b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JInceptionV3NetTest.java
@@ -39,7 +39,7 @@ public class DL4JInceptionV3NetTest {
config = new TikaConfig(is);
} catch (Exception e) {
if (e.getMessage() != null && (e.getMessage().contains("Connection refused") ||
- e.getMessage().contains("connect timed out"))) {
+ e.getMessage().contains("connect timed out") || e.getMessage().contains("403 for URL"))) {
assumeTrue(false, "skipping test because of connection issue");
}
throw e;
diff --git a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
index fcf157eb7..f3666630f 100644
--- a/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
+++ b/tika-parsers/tika-parsers-ml/tika-dl/src/test/java/org/apache/tika/dl/imagerec/DL4JVGG16NetTest.java
@@ -39,7 +39,7 @@ public class DL4JVGG16NetTest {
config = new TikaConfig(is);
} catch (Exception e) {
if (e.getMessage() != null && (e.getMessage().contains("Connection refused") ||
- e.getMessage().contains("connect timed out"))) {
+ e.getMessage().contains("connect timed out") || e.getMessage().contains("403 for URL"))) {
assumeTrue(false, "skipping test because of connection issue");
}
throw e;