From 8e6a3b022518eec8abfad3c11a3e8d5c6b7f4bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Tue, 2 Apr 2024 13:22:32 +0200 Subject: [PATCH] Log JSON string that caused parsing error --- src/main/java/io/odh/test/platform/KFPv1Client.java | 2 ++ src/main/java/io/odh/test/platform/KFPv2Client.java | 2 ++ src/main/java/io/odh/test/platform/RayClient.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/main/java/io/odh/test/platform/KFPv1Client.java b/src/main/java/io/odh/test/platform/KFPv1Client.java index a6ac8ab0..b1217ff8 100644 --- a/src/main/java/io/odh/test/platform/KFPv1Client.java +++ b/src/main/java/io/odh/test/platform/KFPv1Client.java @@ -4,6 +4,7 @@ */ package io.odh.test.platform; +import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; @@ -33,6 +34,7 @@ public class KFPv1Client { private final ObjectMapper objectMapper = new ObjectMapper() .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) + .enable(JsonParser.Feature.INCLUDE_SOURCE_IN_LOCATION) .setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); private final HttpClient httpClient = HttpClient.newBuilder() .version(HttpClient.Version.HTTP_2) diff --git a/src/main/java/io/odh/test/platform/KFPv2Client.java b/src/main/java/io/odh/test/platform/KFPv2Client.java index 0b16beab..ac9f537f 100644 --- a/src/main/java/io/odh/test/platform/KFPv2Client.java +++ b/src/main/java/io/odh/test/platform/KFPv2Client.java @@ -4,6 +4,7 @@ */ package io.odh.test.platform; +import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; @@ -35,6 +36,7 @@ public class KFPv2Client { private final ObjectMapper objectMapper = new ObjectMapper() .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) + .enable(JsonParser.Feature.INCLUDE_SOURCE_IN_LOCATION) .setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); private final HttpClient httpClient = HttpClient.newBuilder() .version(HttpClient.Version.HTTP_2) diff --git a/src/main/java/io/odh/test/platform/RayClient.java b/src/main/java/io/odh/test/platform/RayClient.java index 9ceae542..83504cb5 100644 --- a/src/main/java/io/odh/test/platform/RayClient.java +++ b/src/main/java/io/odh/test/platform/RayClient.java @@ -4,6 +4,7 @@ */ package io.odh.test.platform; +import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; @@ -28,6 +29,7 @@ public class RayClient { private final ObjectMapper objectMapper = new ObjectMapper() .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) + .enable(JsonParser.Feature.INCLUDE_SOURCE_IN_LOCATION) .setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); private final HttpClient httpClient = HttpClient.newBuilder() .version(HttpClient.Version.HTTP_2)