René's URL Explorer Experiment


Title: [@sentry/nextjs] Errored API routes trigger "API resolved without sending a response" · Issue #3852 · getsentry/sentry-javascript · GitHub

Open Graph Title: [@sentry/nextjs] Errored API routes trigger "API resolved without sending a response" · Issue #3852 · getsentry/sentry-javascript

X Title: [@sentry/nextjs] Errored API routes trigger "API resolved without sending a response" · Issue #3852 · getsentry/sentry-javascript

Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...

Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...

X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3852

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[@sentry/nextjs] Errored API routes trigger \"API resolved without sending a response\"","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [x] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [x] `@sentry/nextjs`\r\n\r\n### Version:\r\n\r\n```\r\n6.10.0\r\n```\r\n\r\n## Description\r\n\r\nDescribe your issue in detail, ideally, you have a reproducible demo that you can show.\r\n\r\nThe `withSentry()` API route wrapper monkeypatches `res.end()` function to await for flush before closing a request. While this is certainly useful for serverless environments, it could cause a false positive warning on deployments with a custom server (e.g., Express).\r\n\r\nSince normal Next API route code does not await for `res.end()` to finish, the handler's promise returns before the response has ended properly. This causes Next to detect the API route as having finished without a response, even though the response is sent a few moments later. Here is an example:\r\n\r\n![imageedit_3_8075703349](https://user-images.githubusercontent.com/5649771/127593168-accf885f-ac1d-4ebb-b769-05f0944b605f.jpg)\r\n\r\nA workaround is to wrap all API routes with another callback that always performs `await res.end()` before returning.","author":{"url":"https://github.com/adarnon","@type":"Person","name":"adarnon"},"datePublished":"2021-07-30T02:52:43Z","url":"https://github.com/getsentry/sentry-javascript/issues/3852"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:16f8387f-311c-4d26-7d2a-982a9eee8731
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE662:1D3CBE:1FD7F6:2A944E:6B043117
html-safe-nonce69cb184d66c34ade5bb754780c914cddfb83bf240e5b7e20e36d7c03b377da48
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjYyOjFEM0NCRToxRkQ3RjY6MkE5NDRFOjZCMDQzMTE3IiwidmlzaXRvcl9pZCI6IjY5NDE2MzE4ODc2ODU0NjQzNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac59c969f684e684ea184d78e67ef7fccf3d51427cc18d5de38892670eb4b99c60
hovercard-subject-tagissue:956353543
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/3852/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ba6c5d793a59b6a5e96111df6b5957c861156b54a0befb75c4fc80255b8b3ed5/getsentry/sentry-javascript/issues/3852
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ba6c5d793a59b6a5e96111df6b5957c861156b54a0befb75c4fc80255b8b3ed5/getsentry/sentry-javascript/issues/3852
og:image:altReview the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameadarnon
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/3852#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F3852
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%2Fissues%2F3852
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/3852
Reloadhttps://github.com/getsentry/sentry-javascript/issues/3852
Reloadhttps://github.com/getsentry/sentry-javascript/issues/3852
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues341 (341)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)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
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/3852
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/3852
#6070https://github.com/getsentry/sentry-javascript/pull/6070
#4139https://github.com/getsentry/sentry-javascript/pull/4139
[@sentry/nextjs] Errored API routes trigger "API resolved without sending a response"https://github.com/getsentry/sentry-javascript/issues/3852#top
#6070https://github.com/getsentry/sentry-javascript/pull/6070
#4139https://github.com/getsentry/sentry-javascript/pull/4139
https://github.com/onurtemizkan
https://github.com/adarnon
adarnonhttps://github.com/adarnon
on Jul 30, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issue-956353543
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
https://user-images.githubusercontent.com/5649771/127593168-accf885f-ac1d-4ebb-b769-05f0944b605f.jpg
Nexthttps://github.com/getsentry/sentry-javascript/issues/3852?timeline_page=1
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Jul 30, 2021https://github.com/getsentry/sentry-javascript/issues/3852#event-5089184873
AbhiPrasadhttps://github.com/AbhiPrasad
lobsterkatiehttps://github.com/lobsterkatie
on Aug 3, 2021https://github.com/getsentry/sentry-javascript/issues/3852#event-5104547108
AbhiPrasadhttps://github.com/AbhiPrasad
Package: nextjshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20nextjs%22
on Aug 3, 2021https://github.com/getsentry/sentry-javascript/issues/3852#event-5104551020
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Aug 3, 2021https://github.com/getsentry/sentry-javascript/issues/3852#event-5104551103
etrepumhttps://github.com/etrepum
on Aug 8, 2021https://github.com/getsentry/sentry-javascript/issues/3852#event-5126935861
Workaround for sentry/nextjs async end per getsentry#3852https://github.com/etrepum/sentry-javascript/commit/c5ade038f5caa40743e010ea5d5539b8dc454261
getsentry#3852https://github.com/getsentry/sentry-javascript/issues/3852
c5ade03https://github.com/etrepum/sentry-javascript/commit/c5ade038f5caa40743e010ea5d5539b8dc454261
https://github.com/etrepum
etrepumhttps://github.com/etrepum
on Aug 8, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-894839768
https://github.com/getsentry/sentry-javascript/compare/master...etrepum:resolve-with-response-gh-3852?expand=1&w=1https://github.com/getsentry/sentry-javascript/compare/master...etrepum:resolve-with-response-gh-3852?expand=1&w=1
https://github.com/jordymeow
jordymeowhttps://github.com/jordymeow
on Aug 25, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-905239315
https://github.com/KieraDOG
KieraDOGhttps://github.com/KieraDOG
on Aug 31, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-908816261
https://github.com/adikari
adikarihttps://github.com/adikari
on Sep 2, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-911276660
https://github.com/kaykdm
kaykdmhttps://github.com/kaykdm
on Sep 14, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-918820923
https://nextjs.org/docs/api-routes/api-middlewares#custom-confighttps://nextjs.org/docs/api-routes/api-middlewares#custom-config
https://github.com/benjamintd
benjamintdhttps://github.com/benjamintd
on Sep 14, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-918949433
@kaykdmhttps://github.com/kaykdm
@KieraDOGhttps://github.com/KieraDOG
this commenthttps://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-908816261
https://github.com/maccman
maccmanhttps://github.com/maccman
on Sep 25, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-927115980
https://github.com/getsentry/sentry-javascript/blob/master/packages/nextjs/src/utils/withSentry.ts#L22https://github.com/getsentry/sentry-javascript/blob/master/packages/nextjs/src/utils/withSentry.ts#L22
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 16, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-944910281
github-actionshttps://github.com/apps/github-actions
Status: Stalehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
on Oct 16, 2021https://github.com/getsentry/sentry-javascript/issues/3852#event-5473037169
https://github.com/adarnon
adarnonhttps://github.com/adarnon
on Oct 17, 2021https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-945042119
https://github.com/bsplosion
bsplosionhttps://github.com/bsplosion
on Aug 8, 2022https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-1208099142
https://github.com/reuben-pct
reuben-pcthttps://github.com/reuben-pct
on Aug 9, 2022https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-1208892052
@bsplosionhttps://github.com/bsplosion
n1ru4lhttps://github.com/n1ru4l
on Sep 6, 2022https://github.com/getsentry/sentry-javascript/issues/3852#event-7328618366
fix: set config.api.externalResolver to true in order to avoid weird …https://github.com/graphql-hive/console/commit/ae2bbe5c21a56016737bcb203316d036f07c9dda
ae2bbe5https://github.com/graphql-hive/console/commit/ae2bbe5c21a56016737bcb203316d036f07c9dda
kamilkisielahttps://github.com/kamilkisiela
on Sep 6, 2022https://github.com/getsentry/sentry-javascript/issues/3852#event-7329526960
fix: set config.api.externalResolver to true in order to avoid weird … (https://github.com/graphql-hive/console/commit/f4e92b29b9f53c4e50567230852f35d4f9af3de9
f4e92b2https://github.com/graphql-hive/console/commit/f4e92b29b9f53c4e50567230852f35d4f9af3de9
lobsterkatiehttps://github.com/lobsterkatie
on Sep 26, 2022https://github.com/getsentry/sentry-javascript/issues/3852#event-7455049895
feat(nextjs): Auto-wrap API routes (#5778)https://github.com/getsentry/sentry-javascript/commit/1d8370e64b6fc451b654855d3e2a991d81f90974
#5778https://github.com/getsentry/sentry-javascript/pull/5778
1d8370ehttps://github.com/getsentry/sentry-javascript/commit/1d8370e64b6fc451b654855d3e2a991d81f90974
vladanpaunovichttps://github.com/vladanpaunovic
onurtemizkanhttps://github.com/onurtemizkan
lobsterkatiehttps://github.com/lobsterkatie
on Oct 14, 2022https://github.com/getsentry/sentry-javascript/issues/3852#event-7590529659
AbhiPrasadhttps://github.com/AbhiPrasad
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6070https://github.com/getsentry/sentry-javascript/pull/6070
on Oct 28, 2022https://github.com/getsentry/sentry-javascript/issues/3852#event-7690210688
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Oct 28, 2022https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-1294809684
#5778https://github.com/getsentry/sentry-javascript/pull/5778
7.14.0https://github.com/getsentry/sentry-javascript/releases/tag/7.14.0
https://github.com/bsplosion
bsplosionhttps://github.com/bsplosion
on Dec 5, 2022https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-1337635286
@lobsterkatiehttps://github.com/lobsterkatie
https://github.com/MisterJimson
MisterJimsonhttps://github.com/MisterJimson
on Dec 8, 2022https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-1342861451
https://github.com/bsplosion
bsplosionhttps://github.com/bsplosion
on Jan 24, 2023https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-1401936901
the diffhttps://github.com/getsentry/sentry-javascript/compare/7.31.1...7.32.1
https://github.com/statico
staticohttps://github.com/statico
on Mar 6, 2023https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-1457117907
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Mar 7, 2023https://github.com/getsentry/sentry-javascript/issues/3852#issuecomment-1457809543
@staticohttps://github.com/statico
we do this automatically nowhttps://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#opt-in-to-auto-instrumentation-on-specific-routes
getsentryhttps://github.com/getsentry
on Mar 7, 2023https://github.com/getsentry/sentry-javascript/issues/3852#event-8683329997
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/3852
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/3852
onurtemizkanhttps://github.com/onurtemizkan
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.