Skip to content

fix(issues): Handle None from event serialization in wrap_event_response#108508

Merged
mrduncan merged 1 commit intomasterfrom
mrduncan/handle-serialization-errors
Feb 19, 2026
Merged

fix(issues): Handle None from event serialization in wrap_event_response#108508
mrduncan merged 1 commit intomasterfrom
mrduncan/handle-serialization-errors

Conversation

@mrduncan
Copy link
Copy Markdown
Member

@mrduncan mrduncan commented Feb 19, 2026

When event serialization fails (e.g. due to Snuba timeouts fetching release tags), _serialize() catches the exception and returns None. wrap_event_response didn't handle this, causing a secondary TypeError on event_data["nextEventID"]. Return a proper 500 instead.

Fixes SENTRY-5H40

There is further work to be done here to gracefully degrade when this occurs, for now this will at least help simplify the ways these problems are surfaced.

When event serialization fails (e.g. due to Snuba timeouts fetching
release tags), `_serialize()` catches the exception and returns None.
`wrap_event_response` didn't handle this, causing a secondary TypeError
on `event_data["nextEventID"]`. Return a proper 500 instead.

Fixes SENTRY-5H40
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 19, 2026
@mrduncan mrduncan marked this pull request as ready for review February 19, 2026 01:12
@mrduncan mrduncan requested review from a team as code owners February 19, 2026 01:12
@mrduncan mrduncan merged commit ee57ed6 into master Feb 19, 2026
80 checks passed
@mrduncan mrduncan deleted the mrduncan/handle-serialization-errors branch February 19, 2026 19:47
JonasBa pushed a commit that referenced this pull request Feb 19, 2026
…nse (#108508)

When event serialization fails (e.g. due to Snuba timeouts fetching
release tags), `_serialize()` catches the exception and returns None.
`wrap_event_response` didn't handle this, causing a secondary TypeError
on `event_data["nextEventID"]`. Return a proper 500 instead.

Fixes SENTRY-5H40

There is further work to be done here to gracefully degrade when this
occurs, for now this will at least help simplify the ways these problems
are surfaced.
mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
…nse (#108508)

When event serialization fails (e.g. due to Snuba timeouts fetching
release tags), `_serialize()` catches the exception and returns None.
`wrap_event_response` didn't handle this, causing a secondary TypeError
on `event_data["nextEventID"]`. Return a proper 500 instead.

Fixes SENTRY-5H40

There is further work to be done here to gracefully degrade when this
occurs, for now this will at least help simplify the ways these problems
are surfaced.
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

claude-code-assisted Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants