sentry-javascript-bundler-plugins icon indicating copy to clipboard operation
sentry-javascript-bundler-plugins copied to clipboard

Source Maps not loading on sentry

Open monika-agg opened this issue 1 year ago • 15 comments

I dont know if its a bug or i am doing something wrong, but i am trying to upload the sourcemaps.

Using self-hosted sentry version v2.11.0

i have first tried the legacy uploading methods But that did not work as well.

Then found another way by hosting publically all js files have the sourcemap URLs, But still no source maps are getting loaded or applied to the errors.

sentry project settings are as follows Screenshot 2024-06-05 at 2 02 07 PM

can someone help and tell ma what i am doing wrong, why are the sourcemap not loading even after hosting publically?

monika-agg avatar Jun 05 '24 08:06 monika-agg

Sadly we have very little information in this issue. Since version 2.11.0 is already quite old (assuming you mean 22.11.0) I would try upgrading Sentry as a first step and also look into the logs of the symbolicator container/service.

lforst avatar Jun 05 '24 08:06 lforst

symbolicator sorry, for the version mistake. and Yes, the version is 22.11.0.

do i have to update sentry, even with the approach of publically hosting the sourcemap ?

Isn't there anything i can do on v22.11.0 only?

monika-agg avatar Jun 05 '24 09:06 monika-agg

@monika-agg you don't have to upgrade when publicly hosting the sourcemaps but it will likely be easier to debug and you can also use newer methods of uploading source maps.

Isn't there anything i can do on v22.11.0 only?

The troubleshooting part is unfortunately up to you. Since you are self-hosted I can't give you much guidance simply because I have no insight into your setup. As I said, I recommend looking in the symbolicator logs.

lforst avatar Jun 05 '24 09:06 lforst

I am also having issues with uploading sourcemaps to sentry. I am using the following packages

    "@sentry/cli": "2.32.1",
    "@sentry/webpack-plugin": "2.18.0",
    "@swc/core": "1.6.1",

[!CAUTION] ERROR failed to read input source map: failed to parse inline source map URL ./bmSWWllS1.map Caused by: relative URL without a base

MateuszGroth avatar Jun 19 '24 13:06 MateuszGroth

The error does not happen on @swc/[email protected]

MateuszGroth avatar Jun 19 '24 13:06 MateuszGroth

@MateuszGroth Ok that seems unrelated to the plugin though. I recommend opening an issue in the SWC repo.

lforst avatar Jun 19 '24 14:06 lforst

@lforst I decided to start the conversation here since the sourcemaps seem to be generated correctly

MateuszGroth avatar Jun 19 '24 14:06 MateuszGroth

But swc trips and not our plugin right? I don't quite see the connection yet 😄

lforst avatar Jun 19 '24 14:06 lforst

The sentry vite plugin seems to work with that swc core version ;/

MateuszGroth avatar Jun 19 '24 15:06 MateuszGroth

The Sentry vite plugin does not use SWC when building.

lforst avatar Jun 20 '24 08:06 lforst

Vite on top of swc with the plugin works

MateuszGroth avatar Jun 20 '24 09:06 MateuszGroth

@MateuszGroth can you please elaborate. None of this makes sense to me.

lforst avatar Jun 20 '24 09:06 lforst

The question is, why Vite, using the swc bundler (1.6.1 @swc/core) works correctly with the@sentry/vite-plugin and the webpack + swc + @sentry/webpack-plugin configuration does not

MateuszGroth avatar Jun 20 '24 10:06 MateuszGroth

Let me add that there are no errors when the @sentry/webpack-plugin plugin is not used.

MateuszGroth avatar Jun 20 '24 10:06 MateuszGroth

I strongly recommend to share reproduction so we can look at this more closely.

lforst avatar Jun 20 '24 11:06 lforst

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Aug 27 '24 07:08 getsantry[bot]