Skip to content

Fix: Extract non-JSON error body#33

Merged
vostres merged 12 commits intomainfrom
test/extract-error-body
Mar 18, 2026
Merged

Fix: Extract non-JSON error body#33
vostres merged 12 commits intomainfrom
test/extract-error-body

Conversation

@vostres
Copy link
Copy Markdown
Contributor

@vostres vostres commented Mar 12, 2026

Before:
When the inference service returns a non-JSON response, the actual error is masked by a parsing failure.

Caused by: java.lang.IllegalArgumentException: Could not process JSON error object
Caused by: com.fasterxml.jackson.core.JsonParseException:
Unrecognized token 'dial'

After:
The original error is preserved.

Caused by: com.bakdata.kserve.client.InferenceRequestException:
Inference request failed: 502:
dial tcp 127.0.0.1:8080: connect: connection refused

@vostres vostres changed the title Test: Extract JSON error body Fix: Extract JSON error body Mar 18, 2026
@vostres vostres self-assigned this Mar 18, 2026
@vostres vostres marked this pull request as ready for review March 18, 2026 08:15
@vostres vostres changed the title Fix: Extract JSON error body Fix: Extract non-JSON error body Mar 18, 2026
Co-authored-by: Philipp Schirmer <philipp.schirmer@bakdata.com>
@vostres vostres requested a review from philipp94831 March 18, 2026 12:35
@sonarqubecloud
Copy link
Copy Markdown

@vostres vostres merged commit 5c02d94 into main Mar 18, 2026
7 checks passed
@vostres vostres deleted the test/extract-error-body branch March 18, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants