getsentry / sentry-cli

A command line utility to work with Sentry.
https://docs.sentry.io/cli/
BSD 3-Clause "New" or "Revised" License
898 stars 221 forks source link

Uploaded sourcemap not recognized #1678

Closed argmichael closed 1 year ago

argmichael commented 1 year ago

Environment

What version of the CLI and what OS are you running? CLI Version: 2.19.4 OS: wsl2 ubuntu 22.04

Steps to Reproduce

What you did?

export VERSION=1.0.1
sentry-cli releases new "$VERSION" --org verascope --project fe
npm run build (this creates the build folder)
sentry-cli sourcemaps inject build/static/js
sentry-cli releases files "$VERSION" --org verascope --project fe upload-sourcemaps build/static/js --url-prefix="~/static/js"
sentry-cli releases finalize "$VERSION" --org verascope --project fe

Expected/Actual Result

What you thought would happen and what actually happened? The error was caught by sentry but the code was not minified successfully. As you can see the sourcemap has been uploaded.

image image

Logs

Running sentry-cli sourcemaps inject build/static/js

  INFO    2023-07-10 14:26:36.807066966 -05:00 Loaded config from /home/user/.sentryclirc
  DEBUG   2023-07-10 14:26:36.807418579 -05:00 sentry-cli version: 2.19.4, platform: "linux", architecture: "x86_64"
  INFO    2023-07-10 14:26:36.807470578 -05:00 sentry-cli was invoked with the following command line: "/home/user/.nvm/versions/node/v16.17.0/lib/node_modules/@sentry/cli/sentry-cli" "sourcemaps" "inject" "build/static/js"
> Searching build/static/js
  DEBUG   2023-07-10 14:26:36.809441750 -05:00 built glob set; 0 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 4 required extensions, 0 regexes  (from globset)
  DEBUG   2023-07-10 14:26:36.810994167 -05:00 whitelisting build/static/js/main.440dcf7b.js: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "js", globs: ["*.js"] } }))))  (from ignore)
  INFO    2023-07-10 14:26:36.811253505 -05:00 found: build/static/js/main.440dcf7b.js (3494309 bytes)
  DEBUG   2023-07-10 14:26:36.825939883 -05:00 whitelisting build/static/js/483.cf3846ff.chunk.js: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "js", globs: ["*.js"] } }))))  (from ignore)
  INFO    2023-07-10 14:26:36.826046137 -05:00 found: build/static/js/483.cf3846ff.chunk.js (761208 bytes)
  DEBUG   2023-07-10 14:26:36.828703115 -05:00 ignoring build/static/js/main.440dcf7b.js.LICENSE.txt: Ignore(IgnoreMatch(Types(Glob(UnmatchedIgnore))))  (from ignore)
  DEBUG   2023-07-10 14:26:36.828820958 -05:00 whitelisting build/static/js/main.440dcf7b.js.map: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "map", globs: ["*.map"] } }))))  (from ignore)
  INFO    2023-07-10 14:26:36.828905532 -05:00 found: build/static/js/main.440dcf7b.js.map (14071594 bytes)
  DEBUG   2023-07-10 14:26:36.870192462 -05:00 whitelisting build/static/js/483.cf3846ff.chunk.js.map: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "map", globs: ["*.map"] } }))))  (from ignore)
  INFO    2023-07-10 14:26:36.870318632 -05:00 found: build/static/js/483.cf3846ff.chunk.js.map (3332267 bytes)
⠁ Searching for files...
> Found 4 files
> Analyzing 4 sources
> Analyzing completed in 0.056s
> Injecting debug ids

Source Map Debug ID Injection Report
  Ignored: The following source files already have debug ids
    777ffc6e-bf37-5388-906e-ba5744ee20d8 - build/static/js/483.cf3846ff.chunk.js
    31cadf22-ffd2-5827-ab35-cb1a354b8791 - build/static/js/main.440dcf7b.js

Running sentry-cli releases files "$VERSION" --org verascope --project fe upload-sourcemaps build/static/js --url-prefix="~/static/js"

  INFO    2023-07-10 14:29:02.220998392 -05:00 Loaded config from /home/user/.sentryclirc
  DEBUG   2023-07-10 14:29:02.221087439 -05:00 sentry-cli version: 2.19.4, platform: "linux", architecture: "x86_64"
  INFO    2023-07-10 14:29:02.221104707 -05:00 sentry-cli was invoked with the following command line: "/home/user/.nvm/versions/node/v16.17.0/lib/node_modules/@sentry/cli/sentry-cli" "releases" "files" "1.0.1" "--org" "verascope" "--project" "fe" "upload-sourcemaps" "build/static/js" "--url-prefix=~/static/js"
  DEBUG   2023-07-10 14:29:02.221736533 -05:00 request GET https://sentry.io/api/0/organizations/verascope/chunk-upload/
  DEBUG   2023-07-10 14:29:02.221819113 -05:00 using token authentication
  DEBUG   2023-07-10 14:29:02.221898049 -05:00 retry number 0, max retries: 0
  DEBUG   2023-07-10 14:29:02.346961805 -05:00 > GET /api/0/organizations/verascope/chunk-upload/ HTTP/1.1
  DEBUG   2023-07-10 14:29:02.347009123 -05:00 > Host: sentry.io
  DEBUG   2023-07-10 14:29:02.347015373 -05:00 > Accept: */*
  DEBUG   2023-07-10 14:29:02.347019730 -05:00 > Connection: TE
  DEBUG   2023-07-10 14:29:02.347023918 -05:00 > TE: gzip
  DEBUG   2023-07-10 14:29:02.347028386 -05:00 > User-Agent: sentry-cli/2.19.4
  DEBUG   2023-07-10 14:29:02.347430353 -05:00 > Authorization: Bearer d3cdfca2***
  DEBUG   2023-07-10 14:29:02.647653208 -05:00 < HTTP/1.1 200 OK
  DEBUG   2023-07-10 14:29:02.647755694 -05:00 < Server: nginx
  DEBUG   2023-07-10 14:29:02.647829111 -05:00 < Date: Mon, 10 Jul 2023 19:29:03 GMT
  DEBUG   2023-07-10 14:29:02.647871691 -05:00 < Content-Type: application/json
  DEBUG   2023-07-10 14:29:02.647939104 -05:00 < Content-Length: 364
  DEBUG   2023-07-10 14:29:02.648009065 -05:00 < Connection: keep-alive
  DEBUG   2023-07-10 14:29:02.648077047 -05:00 < allow: GET, POST, HEAD, OPTIONS
  DEBUG   2023-07-10 14:29:02.648145052 -05:00 < access-control-allow-methods: GET, POST, HEAD, OPTIONS
  DEBUG   2023-07-10 14:29:02.648198980 -05:00 < access-control-allow-headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2023-07-10 14:29:02.648212324 -05:00 < access-control-expose-headers: X-Sentry-Error, Retry-After
  DEBUG   2023-07-10 14:29:02.648220642 -05:00 < access-control-allow-origin: *
  DEBUG   2023-07-10 14:29:02.648228085 -05:00 < x-sentry-rate-limit-remaining: 199
  DEBUG   2023-07-10 14:29:02.648237561 -05:00 < x-sentry-rate-limit-limit: 200
  DEBUG   2023-07-10 14:29:02.648295981 -05:00 < x-sentry-rate-limit-reset: 1689017343
  DEBUG   2023-07-10 14:29:02.648339535 -05:00 < x-sentry-rate-limit-concurrentremaining: 199
  DEBUG   2023-07-10 14:29:02.648351133 -05:00 < x-sentry-rate-limit-concurrentlimit: 200
  DEBUG   2023-07-10 14:29:02.648359751 -05:00 < vary: Accept-Language, Cookie
  DEBUG   2023-07-10 14:29:02.648367991 -05:00 < content-language: en
  DEBUG   2023-07-10 14:29:02.648375574 -05:00 < x-frame-options: deny
  DEBUG   2023-07-10 14:29:02.648383275 -05:00 < x-content-type-options: nosniff
  DEBUG   2023-07-10 14:29:02.648391243 -05:00 < x-xss-protection: 1; mode=block
  DEBUG   2023-07-10 14:29:02.648399845 -05:00 < content-security-policy: connect-src *; script-src 'self' 'unsafe-inline' 'report-sample' 'unsafe-eval' s1.sentry-cdn.com js.sentry-cdn.com browser.sentry-cdn.com statuspage-production.s3.amazonaws.com static.zdassets.com aui-cdn.atlassian.com connect-cdn.atl-paas.net js.stripe.com ssl.google-analytics.com 'strict-dynamic' cdn.pendo.io data.pendo.io pendo-io-static.storage.googleapis.com pendo-static-5634074999128064.storage.googleapis.com; object-src 'self'; img-src * blob: data:; default-src *; base-uri 'none'; font-src * data:; frame-ancestors 'self'; style-src * 'unsafe-inline'; report-uri https://o1.ingest.sentry.io/api/54785/security/?sentry_key=f724a8a027db45f5b21507e7142ff78e&sentry_release=2ee6cf3f510ce78e70550a65164df21c60267696
  DEBUG   2023-07-10 14:29:02.648473547 -05:00 < x-envoy-attempt-count: 1
  DEBUG   2023-07-10 14:29:02.648520504 -05:00 < x-envoy-upstream-service-time: 271
  DEBUG   2023-07-10 14:29:02.648563843 -05:00 < x-served-by: getsentry-web-default-common-production-5c8458ffbc-xrcz8
  DEBUG   2023-07-10 14:29:02.648607081 -05:00 < x-served-by: frontend-default-6b7c5d66c-zlvd7
  DEBUG   2023-07-10 14:29:02.648620866 -05:00 < strict-transport-security: max-age=31536000; includeSubDomains; preload
  DEBUG   2023-07-10 14:29:02.648665426 -05:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  DEBUG   2023-07-10 14:29:02.648733729 -05:00 response status: 200
  DEBUG   2023-07-10 14:29:02.648808172 -05:00 body: {"url":"https://sentry.io/api/0/organizations/verascope/chunk-upload/","chunkSize":8388608,"chunksPerRequest":64,"maxFileSize":2147483648,"maxRequestSize":33554432,"concurrency":8,"hashAlgorithm":"sha1","compression":["gzip"],"accept":["debug_files","release_files","pdbs","sources","bcsymbolmaps","il2cpp","portablepdbs","artifact_bundles","artifact_bundles_v2"]}
  DEBUG   2023-07-10 14:29:02.650937030 -05:00 built glob set; 0 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 4 required extensions, 0 regexes  (from globset)
  DEBUG   2023-07-10 14:29:02.651358385 -05:00 whitelisting build/static/js/main.440dcf7b.js: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "js", globs: ["*.js"] } }))))  (from ignore)
  INFO    2023-07-10 14:29:02.651424495 -05:00 found: build/static/js/main.440dcf7b.js (3494309 bytes)
  DEBUG   2023-07-10 14:29:02.652780972 -05:00 whitelisting build/static/js/483.cf3846ff.chunk.js: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "js", globs: ["*.js"] } }))))  (from ignore)
  INFO    2023-07-10 14:29:02.652847671 -05:00 found: build/static/js/483.cf3846ff.chunk.js (761208 bytes)
  DEBUG   2023-07-10 14:29:02.653295643 -05:00 ignoring build/static/js/main.440dcf7b.js.LICENSE.txt: Ignore(IgnoreMatch(Types(Glob(UnmatchedIgnore))))  (from ignore)
  DEBUG   2023-07-10 14:29:02.653349487 -05:00 whitelisting build/static/js/main.440dcf7b.js.map: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "map", globs: ["*.map"] } }))))  (from ignore)
  INFO    2023-07-10 14:29:02.653400720 -05:00 found: build/static/js/main.440dcf7b.js.map (14071594 bytes)
  DEBUG   2023-07-10 14:29:02.659284360 -05:00 whitelisting build/static/js/483.cf3846ff.chunk.js.map: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "map", globs: ["*.map"] } }))))  (from ignore)
  INFO    2023-07-10 14:29:02.659357206 -05:00 found: build/static/js/483.cf3846ff.chunk.js.map (3332267 bytes)
⠁ Searching for files...
> Found 4 files
> Analyzing 4 sources
> Analyzing completed in 0.042s
> Rewriting sources
> Rewriting completed in 0.63s
> Adding source map references
  DEBUG   2023-07-10 14:29:03.391006102 -05:00 request GET https://sentry.io/api/0/projects/verascope/fe/releases/1.0.1/files/?cursor=&checksum=0bd02f31f047d9ba5691252cfbf6e6f7c9956916&checksum=4690dd5e405810704fff5e7d9234d4a5bbcd9fff&checksum=79e6c4f4fd3d305729c93ba577a30d53685c2a6e&checksum=f0f3216a5cd609de6fc803594c87a329501787db
  DEBUG   2023-07-10 14:29:03.391065368 -05:00 using token authentication
  DEBUG   2023-07-10 14:29:03.391076345 -05:00 retry number 0, max retries: 0
  DEBUG   2023-07-10 14:29:03.391289119 -05:00 > GET /api/0/projects/verascope/fe/releases/1.0.1/files/?cursor=&checksum=0bd02f31f047d9ba5691252cfbf6e6f7c9956916&checksum=4690dd5e405810704fff5e7d9234d4a5bbcd9fff&checksum=79e6c4f4fd3d305729c93ba577a30d53685c2a6e&checksum=f0f3216a5cd609de6fc803594c87a329501787db HTTP/1.1
  DEBUG   2023-07-10 14:29:03.391316838 -05:00 > Host: sentry.io
  DEBUG   2023-07-10 14:29:03.391324243 -05:00 > Accept: */*
  DEBUG   2023-07-10 14:29:03.391330344 -05:00 > Connection: TE
  DEBUG   2023-07-10 14:29:03.391350938 -05:00 > TE: gzip
  DEBUG   2023-07-10 14:29:03.391359722 -05:00 > User-Agent: sentry-cli/2.19.4
  DEBUG   2023-07-10 14:29:03.391396653 -05:00 > Authorization: Bearer d3cdfca2***
  DEBUG   2023-07-10 14:29:03.575238549 -05:00 < HTTP/1.1 200 OK
  DEBUG   2023-07-10 14:29:03.575295567 -05:00 < Server: nginx
  DEBUG   2023-07-10 14:29:03.575308800 -05:00 < Date: Mon, 10 Jul 2023 19:29:04 GMT
  DEBUG   2023-07-10 14:29:03.575331853 -05:00 < Content-Type: application/json
  DEBUG   2023-07-10 14:29:03.575344016 -05:00 < Content-Length: 2
  DEBUG   2023-07-10 14:29:03.575370605 -05:00 < Connection: keep-alive
  DEBUG   2023-07-10 14:29:03.575382665 -05:00 < link: <https://sentry.io/api/0/projects/verascope/fe/releases/1.0.1/files/?checksum=0bd02f31f047d9ba5691252cfbf6e6f7c9956916&checksum=4690dd5e405810704fff5e7d9234d4a5bbcd9fff&checksum=79e6c4f4fd3d305729c93ba577a30d53685c2a6e&checksum=f0f3216a5cd609de6fc803594c87a329501787db&cursor=100:-1:1>; rel="previous"; results="false"; cursor="100:-1:1", <https://sentry.io/api/0/projects/verascope/fe/releases/1.0.1/files/?checksum=0bd02f31f047d9ba5691252cfbf6e6f7c9956916&checksum=4690dd5e405810704fff5e7d9234d4a5bbcd9fff&checksum=79e6c4f4fd3d305729c93ba577a30d53685c2a6e&checksum=f0f3216a5cd609de6fc803594c87a329501787db&cursor=100:1:0>; rel="next"; results="false"; cursor="100:1:0"
  DEBUG   2023-07-10 14:29:03.575409019 -05:00 < allow: GET, POST, HEAD, OPTIONS
  DEBUG   2023-07-10 14:29:03.575416625 -05:00 < access-control-allow-methods: GET, POST, HEAD, OPTIONS
  DEBUG   2023-07-10 14:29:03.575427983 -05:00 < access-control-allow-headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2023-07-10 14:29:03.575449700 -05:00 < access-control-expose-headers: X-Sentry-Error, Retry-After
  DEBUG   2023-07-10 14:29:03.575457810 -05:00 < access-control-allow-origin: *
  DEBUG   2023-07-10 14:29:03.575480765 -05:00 < x-sentry-rate-limit-remaining: 39
  DEBUG   2023-07-10 14:29:03.575488867 -05:00 < x-sentry-rate-limit-limit: 40
  DEBUG   2023-07-10 14:29:03.575497061 -05:00 < x-sentry-rate-limit-reset: 1689017344
  DEBUG   2023-07-10 14:29:03.575503633 -05:00 < x-sentry-rate-limit-concurrentremaining: 24
  DEBUG   2023-07-10 14:29:03.575510096 -05:00 < x-sentry-rate-limit-concurrentlimit: 25
  DEBUG   2023-07-10 14:29:03.575516977 -05:00 < vary: Accept-Language, Cookie
  DEBUG   2023-07-10 14:29:03.575538526 -05:00 < content-language: en
  DEBUG   2023-07-10 14:29:03.575546940 -05:00 < x-frame-options: deny
  DEBUG   2023-07-10 14:29:03.575555225 -05:00 < x-content-type-options: nosniff
  DEBUG   2023-07-10 14:29:03.575576928 -05:00 < x-xss-protection: 1; mode=block
  DEBUG   2023-07-10 14:29:03.575585401 -05:00 < content-security-policy: base-uri 'none'; img-src * blob: data:; script-src 'self' 'unsafe-inline' 'report-sample' 'unsafe-eval' s1.sentry-cdn.com js.sentry-cdn.com browser.sentry-cdn.com statuspage-production.s3.amazonaws.com static.zdassets.com aui-cdn.atlassian.com connect-cdn.atl-paas.net js.stripe.com ssl.google-analytics.com 'strict-dynamic' cdn.pendo.io data.pendo.io pendo-io-static.storage.googleapis.com pendo-static-5634074999128064.storage.googleapis.com; style-src * 'unsafe-inline'; object-src 'self'; frame-ancestors 'self'; default-src *; font-src * data:; connect-src *; report-uri https://o1.ingest.sentry.io/api/54785/security/?sentry_key=f724a8a027db45f5b21507e7142ff78e&sentry_release=2ee6cf3f510ce78e70550a65164df21c60267696
  DEBUG   2023-07-10 14:29:03.575611991 -05:00 < x-envoy-attempt-count: 1
  DEBUG   2023-07-10 14:29:03.575620866 -05:00 < x-envoy-upstream-service-time: 154
  DEBUG   2023-07-10 14:29:03.575642868 -05:00 < x-served-by: getsentry-web-default-common-production-5c8458ffbc-ntz6x
  DEBUG   2023-07-10 14:29:03.575651193 -05:00 < x-served-by: frontend-default-6b7c5d66c-cz7pz
  DEBUG   2023-07-10 14:29:03.575661081 -05:00 < strict-transport-security: max-age=31536000; includeSubDomains; preload
  DEBUG   2023-07-10 14:29:03.575668261 -05:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  DEBUG   2023-07-10 14:29:03.575710096 -05:00 response status: 200
  DEBUG   2023-07-10 14:29:03.576096182 -05:00 body: []
> Bundling files for upload... ~/static/js/483.c
> Bundling files for upload... ~/static/js/483.c
> Bundling files for upload... ~/static/js/main.
> Bundling completed in 1.176s
> Bundled 4 files for upload
> Bundle ID: 884738c8-e7cc-5b83-8327-f9641a2d00e0
> Optimizing completed in 0.019s
  DEBUG   2023-07-10 14:29:04.842581535 -05:00 request POST https://sentry.io/api/0/organizations/verascope/artifactbundle/assemble/
  DEBUG   2023-07-10 14:29:04.842621662 -05:00 using token authentication
  DEBUG   2023-07-10 14:29:04.842649164 -05:00 json body: {"checksum":"23382d989671b859eee09148660eb657585b3da1","chunks":["23382d989671b859eee09148660eb657585b3da1"],"projects":["fe"],"version":"1.0.1"}
  DEBUG   2023-07-10 14:29:04.842673642 -05:00 retry number 0, max retries: 5
  DEBUG   2023-07-10 14:29:04.842817248 -05:00 > POST /api/0/organizations/verascope/artifactbundle/assemble/ HTTP/1.1
  DEBUG   2023-07-10 14:29:04.842838890 -05:00 > Host: sentry.io
  DEBUG   2023-07-10 14:29:04.842845197 -05:00 > Accept: */*
  DEBUG   2023-07-10 14:29:04.842849773 -05:00 > Connection: TE
  DEBUG   2023-07-10 14:29:04.842853984 -05:00 > TE: gzip
  DEBUG   2023-07-10 14:29:04.842858502 -05:00 > User-Agent: sentry-cli/2.19.4
  DEBUG   2023-07-10 14:29:04.842894929 -05:00 > Authorization: Bearer d3cdfca2***
  DEBUG   2023-07-10 14:29:04.842914467 -05:00 > Content-Type: application/json
  DEBUG   2023-07-10 14:29:04.842921266 -05:00 > Content-Length: 145
  DEBUG   2023-07-10 14:29:04.941242013 -05:00 < HTTP/1.1 200 OK
  DEBUG   2023-07-10 14:29:04.941318390 -05:00 < Server: nginx
  DEBUG   2023-07-10 14:29:04.941403531 -05:00 < Date: Mon, 10 Jul 2023 19:29:05 GMT
  DEBUG   2023-07-10 14:29:04.941419193 -05:00 < Content-Type: application/json
  DEBUG   2023-07-10 14:29:04.941428782 -05:00 < Content-Length: 38
  DEBUG   2023-07-10 14:29:04.941437703 -05:00 < Connection: keep-alive
  DEBUG   2023-07-10 14:29:04.941445678 -05:00 < allow: POST, OPTIONS
  DEBUG   2023-07-10 14:29:04.941453820 -05:00 < access-control-allow-methods: POST, OPTIONS
  DEBUG   2023-07-10 14:29:04.941465966 -05:00 < access-control-allow-headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
  DEBUG   2023-07-10 14:29:04.941476263 -05:00 < access-control-expose-headers: X-Sentry-Error, Retry-After
  DEBUG   2023-07-10 14:29:04.941488643 -05:00 < access-control-allow-origin: *
  DEBUG   2023-07-10 14:29:04.941532633 -05:00 < x-sentry-rate-limit-remaining: 39
  DEBUG   2023-07-10 14:29:04.941582340 -05:00 < x-sentry-rate-limit-limit: 40
  DEBUG   2023-07-10 14:29:04.941595801 -05:00 < x-sentry-rate-limit-reset: 1689017346
  DEBUG   2023-07-10 14:29:04.941605180 -05:00 < x-sentry-rate-limit-concurrentremaining: 24
  DEBUG   2023-07-10 14:29:04.941614166 -05:00 < x-sentry-rate-limit-concurrentlimit: 25
  DEBUG   2023-07-10 14:29:04.941623253 -05:00 < vary: Accept-Language, Cookie
  DEBUG   2023-07-10 14:29:04.941671824 -05:00 < content-language: en
  DEBUG   2023-07-10 14:29:04.941721950 -05:00 < x-frame-options: deny
  DEBUG   2023-07-10 14:29:04.941770120 -05:00 < x-content-type-options: nosniff
  DEBUG   2023-07-10 14:29:04.941784263 -05:00 < x-xss-protection: 1; mode=block
  DEBUG   2023-07-10 14:29:04.941795737 -05:00 < content-security-policy: connect-src *; script-src 'self' 'unsafe-inline' 'report-sample' 'unsafe-eval' s1.sentry-cdn.com js.sentry-cdn.com browser.sentry-cdn.com statuspage-production.s3.amazonaws.com static.zdassets.com aui-cdn.atlassian.com connect-cdn.atl-paas.net js.stripe.com ssl.google-analytics.com 'strict-dynamic' cdn.pendo.io data.pendo.io pendo-io-static.storage.googleapis.com pendo-static-5634074999128064.storage.googleapis.com; base-uri 'none'; frame-ancestors 'self'; img-src * blob: data:; object-src 'self'; style-src * 'unsafe-inline'; font-src * data:; default-src *; report-uri https://o1.ingest.sentry.io/api/54785/security/?sentry_key=f724a8a027db45f5b21507e7142ff78e&sentry_release=2ee6cf3f510ce78e70550a65164df21c60267696
  DEBUG   2023-07-10 14:29:04.941809211 -05:00 < x-envoy-attempt-count: 1
  DEBUG   2023-07-10 14:29:04.941817912 -05:00 < x-envoy-upstream-service-time: 69
  DEBUG   2023-07-10 14:29:04.941828111 -05:00 < x-served-by: getsentry-web-default-common-production-5c8458ffbc-hhqqz
  DEBUG   2023-07-10 14:29:04.941873086 -05:00 < x-served-by: frontend-default-6b7c5d66c-lj9xs
  DEBUG   2023-07-10 14:29:04.941887216 -05:00 < strict-transport-security: max-age=31536000; includeSubDomains; preload
  DEBUG   2023-07-10 14:29:04.941897844 -05:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  DEBUG   2023-07-10 14:29:04.941927811 -05:00 response status: 200
  DEBUG   2023-07-10 14:29:04.941974797 -05:00 body: {"state":"created","missingChunks":[]}
  INFO    2023-07-10 14:29:04.942157460 -05:00 using 'gzip' compression for chunk upload
> Uploading completed in 0.001s
> Nothing to upload, all files are on the server

Source Map Upload Report
  Minified Scripts
    ~/static/js/483.cf3846ff.chunk.js (sourcemap at 483.cf3846ff.chunk.js.map, debug id 777ffc6e-bf37-5388-906e-ba5744ee20d8)
    ~/static/js/main.440dcf7b.js (sourcemap at main.440dcf7b.js.map, debug id 31cadf22-ffd2-5827-ab35-cb1a354b8791)
  Source Maps
    ~/static/js/483.cf3846ff.chunk.js.map (debug id 777ffc6e-bf37-5388-906e-ba5744ee20d8)
    ~/static/js/main.440dcf7b.js.map (debug id 31cadf22-ffd2-5827-ab35-cb1a354b8791)
kamilogorek commented 1 year ago

They were uploaded, and you are right, however, stacktrace is pointing to completely different files :)

All your frames are pointing towards /static/js/bundle.js, while the only available files, which you even shown on screenshot are:

~/static/js/483.cf3846ff.chunk.js
~/static/js/main.440dcf7b.js
argmichael commented 1 year ago

They were uploaded, and you are right, however, stacktrace is pointing to completely different files :)

All your frames are pointing towards /static/js/bundle.js, while the only available files, which you even shown on screenshot are:

~/static/js/483.cf3846ff.chunk.js
~/static/js/main.440dcf7b.js

Hello! Thanks for replying @kamilogorek!

I tried changing them now as follows but still the same problem still persists.

Artifact Bundle

image

Caught Error

image

Any ideas? Thanks!

kamilogorek commented 1 year ago

It looks like debug id is missing for sourcemap now, so it's definitely a duplicate of https://github.com/getsentry/sentry-cli/issues/1681 Will close this one to not have multiple opened issues for the same thing. The fix is coming.

argmichael commented 1 year ago

Sounds good! Would love to know when the fix is out. Thank you.

argmichael commented 1 year ago

It looks like debug id is missing for sourcemap now, so it's definitely a duplicate of #1681 Will close this one to not have multiple opened issues for the same thing. The fix is coming.

Hey @kamilogorek #1681 has been closed and verified that it is no longer an issue.

I upgraded my cli to 2.20.3 and still faced issues with my sourcemaps being unrecognized. Can you please reopen the issue?

Steps

sentry-cli releases new 1.0.0 --org verascope --project production
sentry-cli sourcemaps inject frontend/build/static/js
sentry-cli releases finalize 1.0.0 --org verascope --project production
sentry-cli sourcemaps upload frontend/build/static/js --org verascope --project production --url-prefix="/static/js" --release="1.0.0"

Stack Trace - Event ID = 1d9b5e84e895447baad081b3e4127fd6

image

Source Map Bundle

image

SourceMap Explain of the event ID

image