Title: @sentry/node v7.46.0 affects got github responses · Issue #7724 · getsentry/sentry-javascript · GitHub
Open Graph Title: @sentry/node v7.46.0 affects got github responses · Issue #7724 · getsentry/sentry-javascript
X Title: @sentry/node v7.46.0 affects got github responses · Issue #7724 · 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/7724
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/node v7.46.0 affects got github responses","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\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.\r\n\r\n@sentry/node\r\n\r\n### SDK Version\r\n\r\n7.46.0\r\n\r\n### Framework Version\r\n\r\n_No response_\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n```\r\nSentry.init({\r\n dsn: process.env.SENTRY_DSN\r\n});\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Use node.js v18\r\n1. Add `got` v11.8.0 (pre ESM versions)\r\n1. Initialize Sentry v7.46.0\r\n1. Make a Github API request for a private repository with `got` (the private repository part is important - public repositories are not affected)\r\n\r\n```ts\r\nconst Sentry = require('@sentry/node');\r\nconst got = require('got');\r\n\r\n(async () => {\r\n Sentry.init({\r\n dsn: process.env.SENTRY_DSN\r\n });\r\n\r\n try {\r\n const response = await got('https://api.github.com/repos/OWNER/REPO/commits?per_page=1', {\r\n password: process.env.GITHUB_TOKEN\r\n })\r\n console.log(response.body);\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n})();\r\n```\r\n\r\nDowngrading `@sentry/node` to 7.45.0 makes the result expected.\r\n\r\n### Expected Result\r\n\r\nWe get a 200 response back from `got`.\r\n\r\n### Actual Result\r\n\r\nWe get a 404 response back from `got`.","author":{"url":"https://github.com/avaly","@type":"Person","name":"avaly"},"datePublished":"2023-04-04T09:37:15Z","url":"https://github.com/getsentry/sentry-javascript/issues/7724"}
| 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:b6242e9d-2721-4028-47cf-4edecd026f15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8582:259D98:62E232:873D72:6B047554 |
| html-safe-nonce | 64f3565b727076df55256bccb044fa3e191e34a2a8ff97853171fab21c343382 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTgyOjI1OUQ5ODo2MkUyMzI6ODczRDcyOjZCMDQ3NTU0IiwidmlzaXRvcl9pZCI6IjExMzY2OTE3MzEyMjg4MTY3MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e70fbb470b71e9575a655605baac4566cb9dd0362550c8053d734a983a072d40 |
| hovercard-subject-tag | issue:1653533496 |
| 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/7724/issue_layout |
| twitter:image | https://opengraph.githubassets.com/08a30fc9c3b81cb60e69489a00bf8c30e33aa067886b6215765e56b71c43fb94/getsentry/sentry-javascript/issues/7724 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/08a30fc9c3b81cb60e69489a00bf8c30e33aa067886b6215765e56b71c43fb94/getsentry/sentry-javascript/issues/7724 |
| 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 | avaly |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| 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 | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| 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