Skip to content

Commit 6888b58

Browse files
tballisonCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9aa1e19 commit 6888b58

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/PipesParsingHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ private Response buildProcessFailureResponse(PipesResult result) {
217217
try {
218218
json = mapper.writeValueAsString(node);
219219
} catch (Exception e) {
220+
LOG.warn("Failed to serialize PipesResult error response as JSON; falling back to status-only body", e);
220221
json = "{\"status\":\"" + result.status().name() + "\"}";
221222
}
222223
return Response.status(mapStatusToHttpResponse(result.status()))

0 commit comments

Comments
 (0)