getsentry / sentry-webpack-plugin

Repo moved to https://github.com/getsentry/sentry-javascript-bundler-plugins. Please open any issues/PRs there.
MIT License
662 stars 116 forks source link

Issues not referenceing sourcemap artifact #437

Closed chrisjbrown closed 1 year ago

chrisjbrown commented 1 year ago

I've setup releases and am uploading my .js and .js.map files to sentry through this plugin. I do see my files are getting to sentry and sentry is creating a release for them.

New issues that come in do reference the release correctly but sentry doesn't seem to connect the error thrown to the artifact file, but is instead trying to get the sourcemap from my server where it does not exist, hence the 403.

my asset files are hosted on a s3 bucket within a subfolder. I'm not sure if this needs to be included via the urlPrefix option. but I did try that with the same result ☹️

Screen Shot 2023-04-20 at 10 04 24 AM Screen Shot 2023-04-20 at 10 05 55 AM Screen Shot 2023-04-20 at 10 10 33 AM Screen Shot 2023-04-20 at 10 15 33 AM
lforst commented 1 year ago

Are you on SaaS? If so can you share a link to the event and I can take a look!

chrisjbrown commented 1 year ago

yes. thanks! i've pushed a few new releases trying different things. but here is an issue from the release with the configuration above

https://ithaka.sentry.io/share/issue/01e9fcbb68074a3f912ca04404444ad2/

lforst commented 1 year ago

Took a look. urlPrefix must include the entire path. So in your case the uploaded artifacts would need to look like: ~/.../.../.../7130.b5f58aacdc41429b0498.js (where ... are the actual parts of the path)

If the ... are dynamic you can use the RewriteFrames integration to modify the paths before sending them to sentry.

chrisjbrown commented 1 year ago

I thought that might be the case. I did try adding urlPrefix: ~/mfe-copper-roof/item-recommender/${gitHash}

here's an issue with a release using that option https://ithaka.sentry.io/issues/4112431205/events/b1a9e74597354f93aa31987780368b77/

chrisjbrown commented 1 year ago

I thought that might be the case. I did try adding urlPrefix: ~/mfe-copper-roof/item-recommender/${gitHash}

here's an issue with a release using that option https://ithaka.sentry.io/issues/4112431205/events/b1a9e74597354f93aa31987780368b77/

🤦 i made that change in the prod config but not test. Going to making the change there and retry

chrisjbrown commented 1 year ago

that worked! thanks for your help!

lforst commented 1 year ago

Anytime!