Title: NodeJS and Attachment · Issue #4371 · getsentry/sentry-javascript · GitHub
Open Graph Title: NodeJS and Attachment · Issue #4371 · getsentry/sentry-javascript
X Title: NodeJS and Attachment · Issue #4371 · getsentry/sentry-javascript
Description: Maybe it's not a bug, but I'm not sure. because there is no documentation for it. We are trying to send an attachment of the issue to the sentry via the NodeJS backend application. I wrote the code below by commenting out the API, but it...
Open Graph Description: Maybe it's not a bug, but I'm not sure. because there is no documentation for it. We are trying to send an attachment of the issue to the sentry via the NodeJS backend application. I wrote the code...
X Description: Maybe it's not a bug, but I'm not sure. because there is no documentation for it. We are trying to send an attachment of the issue to the sentry via the NodeJS backend application. I wrote ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4371
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NodeJS and Attachment","articleBody":"Maybe it's not a bug, but I'm not sure. because there is no documentation for it.\r\n\r\nWe are trying to send an attachment of the issue to the sentry via the NodeJS backend application. I wrote the code below by commenting out the API, but it didn't work.\r\n\r\nconst sentryResponse = Sentry.captureException(err.original);\r\n const client = Sentry.getCurrentHub().getClient();\r\n const { host, path, projectId, port, protocol, user } = client.getDsn();\r\n const endpoint = `${protocol}://${host}${port !== '' ? `:${port}` : ''}${\r\n path !== '' ? `/${path}` : ''\r\n }/api/${projectId}/events/${sentryResponse}/attachments/?sentry_key=${user}&sentry_version=7&sentry_client=custom-javascript`;\r\n\r\n fetch(endpoint, {\r\n method: 'POST',\r\n body: {\r\n 'variables.file': fs.createReadStream('./README.md')\r\n },\r\n }).catch((ex) => {\r\n // we have to catch this otherwise it throws an infinite loop in Sentry\r\n console.error(ex);\r\n });\r\n } catch (ex) {\r\n console.error(ex);\r\n }\r\n\r\nThere has to be a simpler way to do this?","author":{"url":"https://github.com/ErcinDedeoglu","@type":"Person","name":"ErcinDedeoglu"},"datePublished":"2022-01-05T10:04:23Z","url":"https://github.com/getsentry/sentry-javascript/issues/4371"}
| 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:1b0acc21-798e-18ed-ded7-f049d1493fa4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F2C:15A4DC:178F91F:1F86E78:6B042FBD |
| html-safe-nonce | 9dd31a1b1b68e5b823bab93a9b5ca2953a83d2606592f1840e23bedf4972cec2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjJDOjE1QTREQzoxNzhGOTFGOjFGODZFNzg6NkIwNDJGQkQiLCJ2aXNpdG9yX2lkIjoiMTgxMjc3NDk5NzI4NzI1MTkwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 59a7415e0aba4f6eadd5a0c41eb46e1adfdd0ad13e049197b7561d98c35f0fa1 |
| hovercard-subject-tag | issue:1094180268 |
| 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/4371/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0bc0292727737f1b24a56483a2dbd59fe8bfbcfe7f7caac07e65adce36a476c/getsentry/sentry-javascript/issues/4371 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0bc0292727737f1b24a56483a2dbd59fe8bfbcfe7f7caac07e65adce36a476c/getsentry/sentry-javascript/issues/4371 |
| og:image:alt | Maybe it's not a bug, but I'm not sure. because there is no documentation for it. We are trying to send an attachment of the issue to the sentry via the NodeJS backend application. I wrote the code... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ErcinDedeoglu |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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