Skip to content

fix(replays): Return 404 for malformed replay IDs in endpoints - #127764

Open
sentry-junior[bot] wants to merge 5 commits into
masterfrom
fix/replays-recording-segments-invalid-id
Open

sentry-junior[bot] wants to merge 5 commits into
masterfrom
fix/replays-recording-segments-invalid-id

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Replay endpoints generally return a 404 when an invalid replay ID is sent it, but some of them return 500. First of all that's not correct, second of all it's not consistent, and third of all it fires a bunch of alerts for 50x on endpoints which is not useful!

Instead, let's just return 404 everywhere by mashing that check into convert_args.

via George Gritsouk.

--

View Junior Session [Sentry]

…t index

Co-Authored-By: George Gritsouk <george.gritsouk@sentry.io>
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner October 16, 2026 14:46
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 16, 2026
@gggritso
gggritso marked this pull request as draft October 16, 2026 14:47
sentry-junior Bot and others added 2 commits October 16, 2026 14:53
Co-Authored-By: George Gritsouk <george.gritsouk@sentry.io>
…se endpoint

Co-Authored-By: George Gritsouk <george.gritsouk@sentry.io>
@sentry-junior sentry-junior Bot changed the title fix(replays): Return 404 for malformed replay ids in recording segment index fix(replays): Return 404 for malformed replay ids on project replay endpoints Oct 16, 2026
Co-Authored-By: George Gritsouk <george.gritsouk@sentry.io>

@gggritso gggritso 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.

LGTM

Comment thread src/sentry/replays/endpoints/project_replay_endpoint.py Outdated
@gggritso

Copy link
Copy Markdown
Member

@cursor review

@gggritso gggritso changed the title fix(replays): Return 404 for malformed replay ids on project replay endpoints fix(replays): Return 404 for malformed replay IDs in endpoints Oct 16, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit edb92da. Configure here.

@gggritso
gggritso marked this pull request as ready for review October 16, 2026 16:09

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

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant