Skip to content

[OGUI-1959] Fix error handling in development mode to include error stack and message - #3746

Open
isaachilly wants to merge 7 commits into
devfrom
bug/FRM/OGUI-1959/message-and-stack-in-dev-mode-500-error
Open

isaachilly wants to merge 7 commits into
devfrom
bug/FRM/OGUI-1959/message-and-stack-in-dev-mode-500-error

Conversation

@isaachilly

@isaachilly isaachilly commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected
  • FLP integration tests were ran successful

Ticket:

Ensure that error responses in dev mode return fuller error details.

Code:

  • In dev mode explicitly copy name, message and stack to the response.
  • Add a test to check.

Reviewer:

Can go between old and new code and see the test fail and pass with the different response returned.

@isaachilly
isaachilly requested a review from graduta as a code owner November 20, 2026 14:58
@isaachilly
isaachilly added this pull request to stack #3747 November 20, 2026 14:58
@isaachilly isaachilly self-assigned this Nov 20, 2026
@isaachilly
isaachilly force-pushed the bug/FRM/OGUI-1959/message-and-stack-in-dev-mode-500-error branch from 95f079e to 5207277 Compare November 23, 2026 15:31
@isaachilly
isaachilly force-pushed the feature/Houwie7000/OGUI-1586/docker-compose-ILG branch from 6a580c3 to d6c1b6d Compare November 25, 2026 12:59
@isaachilly
isaachilly force-pushed the bug/FRM/OGUI-1959/message-and-stack-in-dev-mode-500-error branch from 5207277 to 7394956 Compare November 25, 2026 12:59
@isaachilly
isaachilly removed this pull request from stack #3747 November 25, 2026 13:38
@isaachilly
isaachilly added this pull request to stack #3763 November 25, 2026 13:40
@isaachilly
isaachilly force-pushed the feature/Houwie7000/OGUI-1586/docker-compose-ILG branch from d6c1b6d to 2db80ca Compare November 25, 2026 16:48
@isaachilly
isaachilly force-pushed the bug/FRM/OGUI-1959/message-and-stack-in-dev-mode-500-error branch from 7394956 to 4d82401 Compare November 25, 2026 16:48
@isaachilly
isaachilly removed this pull request from stack #3763 November 26, 2026 16:38
@isaachilly
isaachilly added this pull request to stack #3764 November 26, 2026 16:38
@isaachilly
isaachilly removed this pull request from stack #3764 November 26, 2026 17:55
@isaachilly
isaachilly changed the base branch from feature/Houwie7000/OGUI-1586/docker-compose-ILG to dev November 26, 2026 17:55
@isaachilly
isaachilly force-pushed the bug/FRM/OGUI-1959/message-and-stack-in-dev-mode-500-error branch from 4d82401 to 8cf97ea Compare November 26, 2026 17:58
…or' of github.com:AliceO2Group/WebUi into bug/FRM/OGUI-1959/message-and-stack-in-dev-mode-500-error
Handler just forward to the next one which is the generic one so we'd be logging the error twice.

@graduta graduta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @isaachilly , what is the usecase you have in mind for this?
The stack trace was on purpose not being sent as an answer especially in development as it would not bring any benefit given that we prefer to rely on logging for such occurences.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants