René's URL Explorer Experiment


Title: fix(nextjs): Prevent false `API resolved without sending a response` warning by lobsterkatie · Pull Request #4139 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(nextjs): Prevent false `API resolved without sending a response` warning by lobsterkatie · Pull Request #4139 · getsentry/sentry-javascript

X Title: fix(nextjs): Prevent false `API resolved without sending a response` warning by lobsterkatie · Pull Request #4139 · getsentry/sentry-javascript

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

Open Graph Description: This PR prevents a false positive warning from nextjs which arises from the interaction of our API route wrapper withSentry() with nextjs's native API route handling. In dev, nextjs checks that...

X Description: This PR prevents a false positive warning from nextjs which arises from the interaction of our API route wrapper withSentry() with nextjs's native API route handling. In dev, nextjs checks ...

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

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:ab663ad0-e600-7a77-8449-106fa25be3bb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD6FE:2F022B:DD25B:13193C:6B043388
html-safe-nonce3fb32f8f89caf7c0b704b4dff3428eb45154626829fc62ac89777887966711d9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkZFOjJGMDIyQjpERDI1QjoxMzE5M0M6NkIwNDMzODgiLCJ2aXNpdG9yX2lkIjoiMTc4NjA4NjAxNDY3NTMzNDAyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccf0cadb9ff2bc278ad684c68b3bae3e7fe98bee5d19222a78d025767e126155c
hovercard-subject-tagpull_request:777180401
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/4139/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ffb6d1506c5c1c084f8c0041813466c0f79131964b2552b97545b8404cb2aabd/getsentry/sentry-javascript/pull/4139
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ffb6d1506c5c1c084f8c0041813466c0f79131964b2552b97545b8404cb2aabd/getsentry/sentry-javascript/pull/4139
og:image:altThis PR prevents a false positive warning from nextjs which arises from the interaction of our API route wrapper withSentry() with nextjs's native API route handling. In dev, nextjs checks that...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelobsterkatie
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
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
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/4139#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F4139
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%2F4139
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/4139
Reloadhttps://github.com/getsentry/sentry-javascript/pull/4139
Reloadhttps://github.com/getsentry/sentry-javascript/pull/4139
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests54 (54)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
lobsterkatiehttps://github.com/lobsterkatie
masterhttps://github.com/getsentry/sentry-javascript/tree/master
kmclb-nextjs-prevent-no-response-warning-in-devhttps://github.com/getsentry/sentry-javascript/tree/kmclb-nextjs-prevent-no-response-warning-in-dev
Conversationhttps://github.com/getsentry/sentry-javascript/pull/4139
Commits1 (1)https://github.com/getsentry/sentry-javascript/pull/4139/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/4139/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/4139/files
fix(nextjs): Prevent false API resolved without sending a response warninghttps://github.com/getsentry/sentry-javascript/pull/4139#top
lobsterkatiehttps://github.com/lobsterkatie
masterhttps://github.com/getsentry/sentry-javascript/tree/master
kmclb-nextjs-prevent-no-response-warning-in-devhttps://github.com/getsentry/sentry-javascript/tree/kmclb-nextjs-prevent-no-response-warning-in-dev
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
Nov 10, 2021https://github.com/getsentry/sentry-javascript/pull/4139#issue-1049343324
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
it throws a warninghttps://github.com/vercel/next.js/blob/e1464ae5a5061ae83ad015018d4afe41f91978b6/packages/next/server/api-utils.ts#L106-L118
#4007https://github.com/getsentry/sentry-javascript/issues/4007
#3852https://github.com/getsentry/sentry-javascript/issues/3852
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 10, 2021https://github.com/getsentry/sentry-javascript/pull/4139#issuecomment-964743015
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
size-limithttps://github.com/ai/size-limit
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
iker-barriocanalhttps://github.com/iker-barriocanal
November 10, 2021 03:05https://github.com/getsentry/sentry-javascript/pull/4139#event-5594257464
https://github.com/iker-barriocanal
iker-barriocanalhttps://github.com/iker-barriocanal
Nov 10, 2021 https://github.com/getsentry/sentry-javascript/pull/4139#pullrequestreview-802866386
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/4139/files
iker-barriocanalhttps://github.com/iker-barriocanal
https://github.com/getsentry/sentry-javascript/pull/4139#pullrequestreview-802866386
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
packages/nextjs/src/utils/withSentry.tshttps://github.com/getsentry/sentry-javascript/pull/4139/files#diff-518a143c7e3035cb03325f42bda3216d1ecf2e5e28f8cfbbccb1e2694dd35313
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
packages/nextjs/src/utils/withSentry.tshttps://github.com/getsentry/sentry-javascript/pull/4139/files#diff-518a143c7e3035cb03325f42bda3216d1ecf2e5e28f8cfbbccb1e2694dd35313
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
packages/nextjs/src/utils/withSentry.tshttps://github.com/getsentry/sentry-javascript/pull/4139/files#diff-518a143c7e3035cb03325f42bda3216d1ecf2e5e28f8cfbbccb1e2694dd35313
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
packages/nextjs/src/utils/withSentry.tshttps://github.com/getsentry/sentry-javascript/pull/4139/files#diff-518a143c7e3035cb03325f42bda3216d1ecf2e5e28f8cfbbccb1e2694dd35313
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
https://github.com/lobsterkatie
bypass warning by flipping res.finished flaghttps://github.com/getsentry/sentry-javascript/pull/4139/commits/39c1e7b640b410709b8285c48c16cda78f29594c
39c1e7bhttps://github.com/getsentry/sentry-javascript/pull/4139/commits/39c1e7b640b410709b8285c48c16cda78f29594c
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/0a70206404aeceb071ecf0b37dbce540163df180..39c1e7b640b410709b8285c48c16cda78f29594c
0a70206https://github.com/getsentry/sentry-javascript/commit/0a70206404aeceb071ecf0b37dbce540163df180
39c1e7bhttps://github.com/getsentry/sentry-javascript/commit/39c1e7b640b410709b8285c48c16cda78f29594c
Compare https://github.com/getsentry/sentry-javascript/compare/0a70206404aeceb071ecf0b37dbce540163df180..39c1e7b640b410709b8285c48c16cda78f29594c
November 10, 2021 21:24https://github.com/getsentry/sentry-javascript/pull/4139#event-5600063173
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
c610b17https://github.com/getsentry/sentry-javascript/commit/c610b17cf788c5eeeb71e930ce84ff89e3c5cff9
Nov 10, 2021https://github.com/getsentry/sentry-javascript/pull/4139#event-5600211603
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
November 10, 2021 21:52https://github.com/getsentry/sentry-javascript/pull/4139#event-5600211659
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
Nov 12, 2021 https://github.com/getsentry/sentry-javascript/pull/4139#ref-issue-1051438116
Getting ERR_STREAM_WRITE_AFTER_END after #4139 #4151 https://github.com/getsentry/sentry-javascript/issues/4151
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
Feb 8, 2022 https://github.com/getsentry/sentry-javascript/pull/4139#ref-pullrequest-1126658199
fix(nextjs): Revert #4139 - remove manipulation of res.finished value #4516 https://github.com/getsentry/sentry-javascript/pull/4516
lobsterkatiehttps://github.com/lobsterkatie
Feb 8, 2022 https://github.com/getsentry/sentry-javascript/pull/4139#ref-commit-ec03e5d
https://github.com/lobsterkatie
fix(nextjs): Reverthttps://github.com/getsentry/sentry-javascript/commit/ec03e5d46846da6e7eba1e6df5ee94e8854525af
#4139https://github.com/getsentry/sentry-javascript/pull/4139
- remove manipulation ofhttps://github.com/getsentry/sentry-javascript/commit/ec03e5d46846da6e7eba1e6df5ee94e8854525af
res.finishedhttps://github.com/getsentry/sentry-javascript/commit/ec03e5d46846da6e7eba1e6df5ee94e8854525af
val…https://github.com/getsentry/sentry-javascript/commit/ec03e5d46846da6e7eba1e6df5ee94e8854525af
ec03e5dhttps://github.com/getsentry/sentry-javascript/commit/ec03e5d46846da6e7eba1e6df5ee94e8854525af
#4516https://github.com/getsentry/sentry-javascript/pull/4516
#4139https://github.com/getsentry/sentry-javascript/pull/4139
#4151https://github.com/getsentry/sentry-javascript/issues/4151
#3852https://github.com/getsentry/sentry-javascript/issues/3852
#4007https://github.com/getsentry/sentry-javascript/issues/4007
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
Mar 11, 2022 https://github.com/getsentry/sentry-javascript/pull/4139#ref-pullrequest-1166107300
fix(nextjs): Add env var to suppress API non-response meta-warning #4706 https://github.com/getsentry/sentry-javascript/pull/4706
lobsterkatiehttps://github.com/lobsterkatie
Mar 11, 2022 https://github.com/getsentry/sentry-javascript/pull/4139#ref-commit-1124961
https://github.com/lobsterkatie
fix(nextjs): Add env var to suppress API non-response meta-warning (https://github.com/getsentry/sentry-javascript/commit/112496151a5ed0caf1da290538d5070a9ad9a5b2
#…https://github.com/getsentry/sentry-javascript/pull/4706
1124961https://github.com/getsentry/sentry-javascript/commit/112496151a5ed0caf1da290538d5070a9ad9a5b2
…4706https://github.com/getsentry/sentry-javascript/pull/4706
#4139https://github.com/getsentry/sentry-javascript/pull/4139
#4151https://github.com/getsentry/sentry-javascript/issues/4151
#4516https://github.com/getsentry/sentry-javascript/pull/4516
#3852 (comment)https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-1062933254
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%2F4139
https://github.com/iker-barriocanal
iker-barriocanal https://github.com/iker-barriocanal
https://github.com/getsentry/sentry-javascript/pull/4139/files/0a70206404aeceb071ecf0b37dbce540163df180
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
withSentry wrapper causes stalled request warning with async request handlers in Next.JS https://github.com/getsentry/sentry-javascript/issues/4007
[@sentry/nextjs] Errored API routes trigger "API resolved without sending a response" https://github.com/getsentry/sentry-javascript/issues/3852
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4139
https://github.com/lobsterkatie
https://github.com/iker-barriocanal
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.