Improve error messages in ErrorResponseExceptionMapper#110
Merged
ruhan1 merged 4 commits intoCommonjava:mainfrom Mar 16, 2026
Merged
Improve error messages in ErrorResponseExceptionMapper#110ruhan1 merged 4 commits intoCommonjava:mainfrom
ruhan1 merged 4 commits intoCommonjava:mainfrom
Conversation
Replace generic "Unknown error" messages with detailed HTTP 500 error information including status codes, response headers, and status info. This helps with debugging when backend services fail by providing correlation IDs and other diagnostic information in the logs. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
b4bac4a to
2a22527
Compare
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2a22527 to
39e612b
Compare
- Update toolchains plugin to use Java 17 - Add Java 17 toolchain to toolchains.xml - Add JVM arguments to cassandra-maven-plugin for Java 17 support - Add required --add-exports and --add-opens flags for Cassandra 3.x Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
d32eed4 to
b1c8457
Compare
- Remove cassandra-maven-plugin which doesn't support Java 17 - Add Testcontainers Cassandra dependency for test containers - Create CassandraTestResource to manage Cassandra container lifecycle - Add init-keyspace.cql for keyspace initialization - Register CassandraTestResource globally via service loader - Simplify test configuration in application.yaml This modern approach uses Docker containers instead of embedded Cassandra, providing better Java 17 compatibility and more reliable test execution. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Problem
When the content service returns HTTP 500 errors with empty response bodies, the current error mapper throws a generic
WebApplicationException: Unknown errorwhich provides no useful debugging information.Solution
Enhanced the
ErrorResponseExceptionMapperto include:🤖 Generated with Claude Code