Title: [nextjs] Improve error message when CLI env vars are missing · Issue #6123 · getsentry/sentry-javascript · GitHub
Open Graph Title: [nextjs] Improve error message when CLI env vars are missing · Issue #6123 · getsentry/sentry-javascript
X Title: [nextjs] Improve error message when CLI env vars are missing · Issue #6123 · getsentry/sentry-javascript
Description: If someone doesn't set the right environment variables in prod (specifically their sentry-cli auth token), they get an error message (Sentry reported an error: Authentication credentials were not provided. (http status: 401))which isn't ...
Open Graph Description: If someone doesn't set the right environment variables in prod (specifically their sentry-cli auth token), they get an error message (Sentry reported an error: Authentication credentials were not p...
X Description: If someone doesn't set the right environment variables in prod (specifically their sentry-cli auth token), they get an error message (Sentry reported an error: Authentication credentials were n...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6123
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[nextjs] Improve error message when CLI env vars are missing","articleBody":"If someone doesn't set the right environment variables in prod (specifically their sentry-cli auth token), they get an error message (`Sentry reported an error: Authentication credentials were not provided. (http status: 401)`)which isn't wrong but also isn't as helpful as it could be. Because of the way the nextjs wizard sets things up (a locally-created but then git-ignored `.sentryclirc` file), it's easy for people to run into this. (The Vercel integration solves it, but not everyone deploys on Vercel.) See [here](https://github.com/orgs/vercel/discussions/583#discussioncomment-4036396) for someone running into this exact problem.\r\n\r\nThough the error comes from `sentry-cli`, we should be able to catch it, either in the webpack plugin or the nextjs SDK, and point people to a solution rather than just stating the problem.\r\n\r\n(We might also think about trying to cut this problem off at the pass by telling people in the wizard that though we've set it up for them locally, they'll have to set their auth token in any other environment for things to work.)\r\n","author":{"url":"https://github.com/lobsterkatie","@type":"Person","name":"lobsterkatie"},"datePublished":"2022-11-03T06:17:41Z","url":"https://github.com/getsentry/sentry-javascript/issues/6123"}
| 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:647ae516-f20c-9310-92d7-d46d9d52c00f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA46:9ABA0:2C37:3910:6B04C01D |
| html-safe-nonce | cb577c409e57c786681272020af48ad822626a27e511724c0000355332514333 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTQ2OjlBQkEwOjJDMzc6MzkxMDo2QjA0QzAxRCIsInZpc2l0b3JfaWQiOiI1MDUzNzMyNzAwMDk2MzQ4MTg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e64f6334c304e1d62b664fa4a1cb0a2fc28919bf14fea0ec67e8eb81c009e021 |
| hovercard-subject-tag | issue:1434167497 |
| 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/6123/issue_layout |
| twitter:image | https://opengraph.githubassets.com/879e1403d36beb04e3bf9dcb38957a06de8a0b43bb0842897663603580de8564/getsentry/sentry-javascript/issues/6123 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/879e1403d36beb04e3bf9dcb38957a06de8a0b43bb0842897663603580de8564/getsentry/sentry-javascript/issues/6123 |
| og:image:alt | If someone doesn't set the right environment variables in prod (specifically their sentry-cli auth token), they get an error message (Sentry reported an error: Authentication credentials were not p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lobsterkatie |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | canary-1 |
| 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