Title: Flushing with timeout doesn't timeout and eventually crashes · Issue #3806 · getsentry/sentry-javascript · GitHub
Open Graph Title: Flushing with timeout doesn't timeout and eventually crashes · Issue #3806 · getsentry/sentry-javascript
X Title: Flushing with timeout doesn't timeout and eventually crashes · Issue #3806 · 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/3806
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Flushing with timeout doesn't timeout and eventually crashes ","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` 6.9.0\r\n\r\n\r\n## Description\r\n\r\nUsing this code in a Next.js API:\r\n\r\n```ts\r\nimport {captureException, flush, withSentry} from '@sentry/nextjs';\r\n\r\nconst handler = async () => {\r\n try {\r\n throw new Error(\r\n 'This is a fake error meant to help testing Sentry error reporting (monitoring).'\r\n );\r\n } catch (e) {\r\n captureException(e);\r\n\r\n await flush(5000); // Need to flush on API to send errors properly (issue in @sentry/nextjs)\r\n }\r\n};\r\n\r\nexport default withSentry(handler);\r\n\r\n```\r\n\r\nCalling the API endpoint runs until the Serverless function times out.\r\nProviding a value to `flush()` doesn't seem to be effective.\r\n\r\n\r\n","author":{"url":"https://github.com/Vadorequest","@type":"Person","name":"Vadorequest"},"datePublished":"2021-07-14T18:51:14Z","url":"https://github.com/getsentry/sentry-javascript/issues/3806"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:668d1502-9b4d-8906-51dc-ff460287a7b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E4A:1F16DD:83943F:B91543:6B04526A |
| html-safe-nonce | 81bdbf1564427b8c223f10be33c8c3f5c58824e8381868593963765457791aac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTRBOjFGMTZERDo4Mzk0M0Y6QjkxNTQzOjZCMDQ1MjZBIiwidmlzaXRvcl9pZCI6IjI4NjY0NTY1Mjc5OTEyMzEwODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6d2bb1fab8220a4e14b89c327d516392b581d7412347caa8ec47d4b45d9d25c8 |
| hovercard-subject-tag | issue:944704797 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/3806/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8529486e6177af4c4929bf5b49ee6cc022a69f5bd7b8b3675866facda34d59d9/getsentry/sentry-javascript/issues/3806 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8529486e6177af4c4929bf5b49ee6cc022a69f5bd7b8b3675866facda34d59d9/getsentry/sentry-javascript/issues/3806 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Vadorequest |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width