René's URL Explorer Experiment


Title: fix(server-utils): Skip Fastify 4xx errors raised before the reply status is set by tobias-schnabel · Pull Request #24924 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(server-utils): Skip Fastify 4xx errors raised before the reply status is set by tobias-schnabel · Pull Request #24924 · getsentry/sentry-javascript

X Title: fix(server-utils): Skip Fastify 4xx errors raised before the reply status is set by tobias-schnabel · Pull Request #24924 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: Since v11, fastifyIntegration always registers an onError hook (#23460). Fastify runs onError hooks before it applies the error's status to the reply, so for errors raised outside the route han...

X Description: Since v11, fastifyIntegration always registers an onError hook (#23460). Fastify runs onError hooks before it applies the error's status to the reply, so for errors raised outside the route...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/24924

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:216074dd-7380-6f03-f8f3-17680346567a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC8D6:178D79:224FE3:2FE5E7:6B042140
html-safe-nonce225e667d41e47b262c2ea30120095e5dd442c86fa16469fabbe0d3b563896ccb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEQ2OjE3OEQ3OToyMjRGRTM6MkZFNUU3OjZCMDQyMTQwIiwidmlzaXRvcl9pZCI6IjE5MzkyNDEwMjIyODI1MzkzMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac60f27116716babbc7313483fff396725f861bdc18783160e00b29c21210c8d39
hovercard-subject-tagpull_request:4701786048
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/24924/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4b13ad00c9f8139c5a477cba346008ef6f115b951c983a9846a99d9a493bfb76/getsentry/sentry-javascript/pull/24924
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4b13ad00c9f8139c5a477cba346008ef6f115b951c983a9846a99d9a493bfb76/getsentry/sentry-javascript/pull/24924
og:image:altSince v11, fastifyIntegration always registers an onError hook (#23460). Fastify runs onError hooks before it applies the error's status to the reply, so for errors raised outside the route han...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametobias-schnabel
hostnamegithub.com
expected-hostnamegithub.com
Nonef8d9f404447ab5df341c8a92cf5fc927730ad1321e64ac57656444d2438097f1
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef7edccce04851591ee529948701779ce6819bc53
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/24924#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F24924
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F24924
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/24924
Reloadhttps://github.com/getsentry/sentry-javascript/pull/24924
Reloadhttps://github.com/getsentry/sentry-javascript/pull/24924
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests58 (58)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
nicohrubechttps://github.com/nicohrubec
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
tobias-schnabel:fix/fastify-default-error-statushttps://github.com/tobias-schnabel/sentry-javascript/tree/fix/fastify-default-error-status
Conversationhttps://github.com/getsentry/sentry-javascript/pull/24924
Commits3 (3)https://github.com/getsentry/sentry-javascript/pull/24924/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/24924/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/24924/files
fix(server-utils): Skip Fastify 4xx errors raised before the reply status is sethttps://github.com/getsentry/sentry-javascript/pull/24924#top
nicohrubechttps://github.com/nicohrubec
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
tobias-schnabel:fix/fastify-default-error-statushttps://github.com/tobias-schnabel/sentry-javascript/tree/fix/fastify-default-error-status
https://github.com/tobias-schnabel
tobias-schnabelhttps://github.com/tobias-schnabel
Oct 1, 2026https://github.com/getsentry/sentry-javascript/pull/24924#issue-5659938684
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
#23460https://github.com/getsentry/sentry-javascript/pull/23460
#18418https://github.com/getsentry/sentry-javascript/issues/18418
#24926https://github.com/getsentry/sentry-javascript/issues/24926
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
external https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3Aexternal
Oct 1, 2026https://github.com/getsentry/sentry-javascript/pull/24924#event-32238425847
https://github.com/tobias-schnabel
tobias-schnabelhttps://github.com/tobias-schnabel
Oct 1, 2026 https://github.com/getsentry/sentry-javascript/pull/24924#ref-issue-5660096584
Fastify integration captures 4xx errors raised before the reply status is set (e.g. empty JSON body) #24926 https://github.com/getsentry/sentry-javascript/issues/24926
https://github.com/tobias-schnabel
tobias-schnabelhttps://github.com/tobias-schnabel
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/3f555ca341cb58e3c17a2e7ce4d7e1d64b73032e..70ecf294864f3e8067b426c3d79f6c256c49fcfe
3f555cahttps://github.com/getsentry/sentry-javascript/commit/3f555ca341cb58e3c17a2e7ce4d7e1d64b73032e
70ecf29https://github.com/getsentry/sentry-javascript/commit/70ecf294864f3e8067b426c3d79f6c256c49fcfe
Compare https://github.com/getsentry/sentry-javascript/compare/3f555ca341cb58e3c17a2e7ce4d7e1d64b73032e..70ecf294864f3e8067b426c3d79f6c256c49fcfe
October 2, 2026 07:46https://github.com/getsentry/sentry-javascript/pull/24924#event-32317530969
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
Oct 2, 2026 https://github.com/getsentry/sentry-javascript/pull/24924#pullrequestreview-5389546270
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24924/files
JPeer264https://github.com/JPeer264
https://github.com/getsentry/sentry-javascript/pull/24924#pullrequestreview-5389546270
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
packages/server-utils/src/integrations/fastify/utils.tshttps://github.com/getsentry/sentry-javascript/pull/24924/files#diff-ed493768819c147da8152cfecd0bc9262ff99530d997e5067c11e7a1d9c8cce6
JPeer264https://github.com/JPeer264
Oct 2, 2026https://github.com/getsentry/sentry-javascript/pull/24924#discussion_r4163922446
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
tobias-schnabelhttps://github.com/tobias-schnabel
Oct 2, 2026https://github.com/getsentry/sentry-javascript/pull/24924#discussion_r4164067912
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
6619eaahttps://github.com/getsentry/sentry-javascript/commit/6619eaae68e2e696b1c69390f6b9d38658a5ca24
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
Oct 2, 2026https://github.com/getsentry/sentry-javascript/pull/24924#issuecomment-5947952313
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
https://github.com/tobias-schnabel
tobias-schnabelhttps://github.com/tobias-schnabel
October 2, 2026 08:29https://github.com/getsentry/sentry-javascript/pull/24924#event-32319885919
https://github.com/tobias-schnabel
tobias-schnabelhttps://github.com/tobias-schnabel
code ownerhttps://github.com/getsentry/sentry-javascript/blob/4ceab6cbcd3621fc928bd71d82be21db6ca93341/.github/CODEOWNERS#L13
October 2, 2026 08:29https://github.com/getsentry/sentry-javascript/pull/24924#event-32319886749
https://github.com/tobias-schnabel
tobias-schnabelhttps://github.com/tobias-schnabel
andreiborzahttps://github.com/andreiborza
isaacshttps://github.com/isaacs
October 2, 2026 08:29https://github.com/getsentry/sentry-javascript/pull/24924#event-32319887266
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
Oct 2, 2026 https://github.com/getsentry/sentry-javascript/pull/24924#pullrequestreview-5389736026
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24924/files
https://github.com/nicohrubec
nicohrubechttps://github.com/nicohrubec
Oct 2, 2026 https://github.com/getsentry/sentry-javascript/pull/24924#pullrequestreview-5390677774
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24924/files
nicohrubechttps://github.com/nicohrubec
https://github.com/getsentry/sentry-javascript/pull/24924#pullrequestreview-5390677774
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
dev-packages/node-integration-tests/suites/tracing/fastify/test.tshttps://github.com/getsentry/sentry-javascript/pull/24924/files#diff-369e424a3c3e48162da26d0b7b58439bdf204fe017e9c39fa54fd789d792f082
nicohrubechttps://github.com/nicohrubec
Oct 2, 2026https://github.com/getsentry/sentry-javascript/pull/24924#discussion_r4164826883
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
tobias-schnabelhttps://github.com/tobias-schnabel
Oct 2, 2026https://github.com/getsentry/sentry-javascript/pull/24924#discussion_r4164915822
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
d7e2622https://github.com/getsentry/sentry-javascript/commit/d7e26228669bf4acf29a94180c69ae34c4bb02ef
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
tobias-schnabelhttps://github.com/tobias-schnabel
October 2, 2026 12:26https://github.com/getsentry/sentry-javascript/pull/24924#commits-pushed-c5f4af1
https://github.com/tobias-schnabel
https://github.com/claude
fix(server-utils): Skip Fastify 4xx errors raised before the reply st…https://github.com/getsentry/sentry-javascript/pull/24924/commits/c5f4af16317e44dac99612bd53879ed5520db882
c5f4af1https://github.com/getsentry/sentry-javascript/pull/24924/commits/c5f4af16317e44dac99612bd53879ed5520db882
https://github.com/tobias-schnabel
https://github.com/claude
fix(server-utils): Guard the Fastify error status lookup against non-…https://github.com/getsentry/sentry-javascript/pull/24924/commits/084d8152fb6283aac9e63965b8dcc501eb74c66d
084d815https://github.com/getsentry/sentry-javascript/pull/24924/commits/084d8152fb6283aac9e63965b8dcc501eb74c66d
https://github.com/tobias-schnabel
https://github.com/claude
test(node): Flush before the follow-up error in the Fastify 4xx testhttps://github.com/getsentry/sentry-javascript/pull/24924/commits/d7e26228669bf4acf29a94180c69ae34c4bb02ef
d7e2622https://github.com/getsentry/sentry-javascript/pull/24924/commits/d7e26228669bf4acf29a94180c69ae34c4bb02ef
https://github.com/tobias-schnabel
tobias-schnabelhttps://github.com/tobias-schnabel
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/6619eaae68e2e696b1c69390f6b9d38658a5ca24..d7e26228669bf4acf29a94180c69ae34c4bb02ef
6619eaahttps://github.com/getsentry/sentry-javascript/commit/6619eaae68e2e696b1c69390f6b9d38658a5ca24
d7e2622https://github.com/getsentry/sentry-javascript/commit/d7e26228669bf4acf29a94180c69ae34c4bb02ef
Compare https://github.com/getsentry/sentry-javascript/compare/6619eaae68e2e696b1c69390f6b9d38658a5ca24..d7e26228669bf4acf29a94180c69ae34c4bb02ef
October 2, 2026 10:28https://github.com/getsentry/sentry-javascript/pull/24924#event-32326640248
https://github.com/nicohrubec
nicohrubechttps://github.com/nicohrubec
Oct 2, 2026 https://github.com/getsentry/sentry-javascript/pull/24924#pullrequestreview-5390795572
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24924/files/d7e26228669bf4acf29a94180c69ae34c4bb02ef
nicohrubechttps://github.com/nicohrubec
https://github.com/getsentry/sentry-javascript/pull/24924#pullrequestreview-5390795572
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
https://github.com/nicohrubec
nicohrubechttps://github.com/nicohrubec
9c10641https://github.com/getsentry/sentry-javascript/commit/9c106411b0113c619577e0c028c2a32d56b8c22b
Oct 2, 2026https://github.com/getsentry/sentry-javascript/pull/24924#event-32327757919
https://github.com/apps/javascript-sdk-gitflow
javascript-sdk-gitflowhttps://github.com/apps/javascript-sdk-gitflow
Oct 2, 2026 https://github.com/getsentry/sentry-javascript/pull/24924#ref-pullrequest-5676384603
chore: Add external contributor to CHANGELOG.md #24980 https://github.com/getsentry/sentry-javascript/pull/24980
nicohrubechttps://github.com/nicohrubec
Oct 2, 2026 https://github.com/getsentry/sentry-javascript/pull/24924#ref-commit-ef90627
https://github.com/apps/javascript-sdk-gitflow
https://github.com/nicohrubec
chore: Add external contributor to CHANGELOG.md (https://github.com/getsentry/sentry-javascript/commit/ef90627b85968b7b7b3b726925624bae17f78967
#24980https://github.com/getsentry/sentry-javascript/pull/24980
)https://github.com/getsentry/sentry-javascript/commit/ef90627b85968b7b7b3b726925624bae17f78967
ef90627https://github.com/getsentry/sentry-javascript/commit/ef90627b85968b7b7b3b726925624bae17f78967
#24924https://github.com/getsentry/sentry-javascript/pull/24924
https://github.com/tobias-schnabel
tobias-schnabelhttps://github.com/tobias-schnabel
October 2, 2026 11:55https://github.com/getsentry/sentry-javascript/pull/24924#event-32331345542
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
Oct 2, 2026 https://github.com/getsentry/sentry-javascript/pull/24924#ref-issue-5677480846
publish: getsentry/sentry-javascript@11.3.0 getsentry/publish#9753 https://github.com/getsentry/publish/issues/9753
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F24924
https://github.com/JPeer264
JPeer264 https://github.com/JPeer264
https://github.com/getsentry/sentry-javascript/pull/24924/files/6619eaae68e2e696b1c69390f6b9d38658a5ca24
https://github.com/nicohrubec
nicohrubec https://github.com/nicohrubec
https://github.com/getsentry/sentry-javascript/pull/24924/files/d7e26228669bf4acf29a94180c69ae34c4bb02ef
https://github.com/isaacs
isaacs https://github.com/isaacs
https://github.com/andreiborza
andreiborza https://github.com/andreiborza
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
external https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3Aexternal
Fastify integration captures 4xx errors raised before the reply status is set (e.g. empty JSON body) https://github.com/getsentry/sentry-javascript/issues/24926
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24924
https://github.com/tobias-schnabel
https://github.com/JPeer264
https://github.com/nicohrubec
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.