Skip to content

SHEN-19483 Add REST Catalog stack trace to exception message#6

Merged
MoIMC merged 1 commit intoimc-trading:developfrom
maxcmiller:SHEN-19483-rest-stack-trace
Mar 23, 2026
Merged

SHEN-19483 Add REST Catalog stack trace to exception message#6
MoIMC merged 1 commit intoimc-trading:developfrom
maxcmiller:SHEN-19483-rest-stack-trace

Conversation

@maxcmiller
Copy link
Copy Markdown

When the Iceberg REST catalog server returns a 500 error, we currently only include the error type and message in the resulting Python exception raised. For example, for an UncheckedSQLException with message "Unknown failure", we raise a
ServerError('UncheckedSQLException: Unknown failure').

This is not very informative as often the root cause of these exceptions is hidden in the server side stack trace. We already send the stack trace as part of the error response, but we do not include it in the Python exception message.

Let's include the stack trace in the exception message for 500 errors (ServerError).

When the Iceberg REST catalog server returns a 500 error, we currently
only include the error type and message in the resulting Python
exception raised. For example, for an UncheckedSQLException with message
"Unknown failure", we raise a
`ServerError('UncheckedSQLException: Unknown failure')`.

This is not very informative as often the root cause of these exceptions
is hidden in the server side stack trace. We already send the stack
trace as part of the error response, but we do not include it in the
Python exception message.

Let's include the stack trace in the exception message for 500 errors
(ServerError).
@maxcmiller maxcmiller force-pushed the SHEN-19483-rest-stack-trace branch from cdfdbec to 1f3ef36 Compare March 20, 2026 00:39
@MoIMC MoIMC merged commit a8a577f into imc-trading:develop Mar 23, 2026
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