Title: Fix `http` monkeypatching for Node 18.15 introduced in v7.42.0 · Issue #7425 · getsentry/sentry-javascript · GitHub
Open Graph Title: Fix `http` monkeypatching for Node 18.15 introduced in v7.42.0 · Issue #7425 · getsentry/sentry-javascript
X Title: Fix `http` monkeypatching for Node 18.15 introduced in v7.42.0 · Issue #7425 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7425
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix `http` monkeypatching for Node 18.15 introduced in v7.42.0","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK setup.\n\n@sentry/node\n\n### SDK Version\n\n7.42.0\n\n### Framework Version\n\nNode 18.15\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\nNothing too fancy. Just a regular setup with defaults:\r\n\r\n```js\r\n Sentry.init({\r\n serverName: 'webhooks',\r\n enabled: !!env.sentry,\r\n environment: env.environment,\r\n dsn: env.sentry.dsn,\r\n release: env.release,\r\n });\r\n```\n\n### Steps to Reproduce\n\nSince upgraded to `v7.42.0` along with Node 18.15, I get this error when my server starts: \r\n\r\n```\r\nTypeError: Cannot assign to read only property 'get' of object '[object Module]'\r\n at fill (file:///usr/src/app/index.js:169657:16)\r\n at Http2.setupOnce (file:///usr/src/app/index.js:174266:5)\r\n at setupIntegration (file:///usr/src/app/index.js:172908:17)\r\n at file:///usr/src/app/index.js:172899:7\r\n at Array.forEach (\u003canonymous>)\r\n at setupIntegrations (file:///usr/src/app/index.js:172897:16)\r\n at NodeClient2.setupIntegrations (file:///usr/src/app/index.js:173180:28)\r\n at Hub2.bindClient (file:///usr/src/app/index.js:171810:14)\r\n at initAndBind (file:///usr/src/app/index.js:173445:7)\r\n at init (file:///usr/src/app/index.js:175864:3)\r\n at main (file:///usr/src/app/index.js:210652:5)\r\n at file:///usr/src/app/index.js:210766:1\r\n at ModuleJob.run (node:internal/modules/esm/module_job:194:25)\r\n```\r\n\r\nAnd this line is found in: \r\nhttps://github.com/getsentry/sentry-javascript/blob/develop/packages/node/src/integrations/http.ts#L105\r\n\r\nIt seems like a recent PR was touching these code areas? https://github.com/getsentry/sentry-javascript/pull/7377\r\n\r\n[Reverting](https://github.com/kamilkisiela/graphql-hive/pull/1678) back to `7.41.0` seems to work perfectly fine. \n\n### Expected Result\n\n-\n\n### Actual Result\n\n-","author":{"url":"https://github.com/dotansimha","@type":"Person","name":"dotansimha"},"datePublished":"2023-03-12T08:11:13Z","url":"https://github.com/getsentry/sentry-javascript/issues/7425"}
| 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:0e5b6e49-5501-67d2-951b-8f6198f90086 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDC2:103741:57BAA7:7617FE:6B04A547 |
| html-safe-nonce | d485be6bf06d0de47b46dcc8070a46e242babce2b136fdfc37960c1f37161cc9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREMyOjEwMzc0MTo1N0JBQTc6NzYxN0ZFOjZCMDRBNTQ3IiwidmlzaXRvcl9pZCI6IjI0NDM2NzAyMjk1MjQ3MTg5MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d385b9821e798000f4f7e8593286dd9d5ee6f5ce36efd47fd4f10ca6dd7e5d56 |
| hovercard-subject-tag | issue:1620274692 |
| 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/7425/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d21903043edf1606122bdeee0b5023a1306d09de840ddaa792cb08220ac74571/getsentry/sentry-javascript/issues/7425 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d21903043edf1606122bdeee0b5023a1306d09de840ddaa792cb08220ac74571/getsentry/sentry-javascript/issues/7425 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dotansimha |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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