Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to log in when using sourcemaps wizard due to script errors #762

Closed
edgariscoding opened this issue Jan 16, 2025 · 6 comments
Closed

Comments

@edgariscoding
Copy link

Environment

@sentry/[email protected]

Sentry Self Hosted v24.11.2

Steps to Reproduce

  1. Ran npx @sentry/wizard@latest -I sourcemaps
  2. When I get to the login step, the browser opens and it shows a loading animation that never finishes

Expected Result

I expected to be able to log in.

I've tried this on multiple browsers and multiple computers.

Actual Result

A loading animation is displayed and errors are logged to the console.

Image
zb7f6e14k66wpbbpyu0nn7i5l4b7bpciwy6ca7xrb007e4nw006hw9nfdz60ml4g/:1  Refused to execute script from 'https://sentry.ciranet.com/_assets/chunks/vendors-node_modules_emotion_react_jsx-runtime_dist_emotion-react-jsx-runtime_browser_esm_js--1f88a8.38411c95843da6149a36.js/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

jsonp chunk loading:27  Uncaught (in promise) ChunkLoadError: Loading chunk vendors-node_modules_emotion_react_jsx-runtime_dist_emotion-react-jsx-runtime_browser_esm_js--1f88a8 failed.
(error: https://sentry.ciranet.com/_assets/chunks/vendors-node_modules_emotion_react_jsx-runtime_dist_emotion-react-jsx-runtime_browser_esm_js--1f88a8.38411c95843da6149a36.js)
    at Object.j (jsonp chunk loading:27:18)
    at ensure chunk:6:28
    at Array.reduce (<anonymous>)
    at Function.e (ensure chunk:5:56)
    at e (index.tsx:73:31)
    at index.tsx:84:1
    at app.js:2:969
    at app.js:2:973
(anonymous) @ jsonp chunk loading:27
(anonymous) @ ensure chunk:6
(anonymous) @ ensure chunk:5
e @ index.tsx:73
(anonymous) @ index.tsx:84
(anonymous) @ app.js:2
(anonymous) @ app.js:2

zb7f6e14k66wpbbpyu0nn7i5l4b7bpciwy6ca7xrb007e4nw006hw9nfdz60ml4g/:1  Refused to execute script from 'https://sentry.ciranet.com/_assets/chunks/app_bootstrap_initializeMain_tsx.79a2dbecf76d5c1bed86.js/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

zb7f6e14k66wpbbpyu0nn7i5l4b7bpciwy6ca7xrb007e4nw006hw9nfdz60ml4g/:1  Refused to execute script from 'https://sentry.ciranet.com/_assets/chunks/vendors-node_modules_moment-timezone_index_js-node_modules_query-string_index_js-node_modules-e4450d.3cc078efe71b1002e2ca.js/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

zb7f6e14k66wpbbpyu0nn7i5l4b7bpciwy6ca7xrb007e4nw006hw9nfdz60ml4g/:1  Refused to execute script from 'https://sentry.ciranet.com/_assets/chunks/app_bootstrap_index_tsx.3ed8e38a1d5446395823.js/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

jsonp chunk loading:27  Uncaught (in promise) ChunkLoadError: Loading chunk app_bootstrap_index_tsx failed.
(error: https://sentry.ciranet.com/_assets/chunks/app_bootstrap_index_tsx.3ed8e38a1d5446395823.js)
    at Object.j (jsonp chunk loading:27:18)
    at ensure chunk:6:28
    at Array.reduce (<anonymous>)
    at Function.e (ensure chunk:5:56)
    at e (index.tsx:74:27)
    at index.tsx:84:1
    at app.js:2:969
    at app.js:2:973
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 16, 2025
@edgariscoding
Copy link
Author

The errors in the console seemed to be caused by this:

getsentry/self-hosted#3473

I upgraded to Sentry Self Hosted v25.1.0 and now those errors are gone but I now see this error and the login still does not succeed:

Image

@edgariscoding
Copy link
Author

Opened an issue in self-hosted:

getsentry/self-hosted#3540

@Lms24
Copy link
Member

Lms24 commented Jan 20, 2025

Hey @edgariscoding thanks for writing in! I asked internally if any recent modification comes to mind. Did logging in work in previous self-hosted version (in case you used any)?

@edgariscoding
Copy link
Author

Hi, @Lms24

It’s worked before yes, but last time I used this feature was about a year ago I believe

Thank you for checking!

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 20, 2025
@Lms24
Copy link
Member

Lms24 commented Jan 21, 2025

Hey, @edgariscoding thanks for letting me know! I asked some folks who made changes recently to the wizard auth and project selection UI but they're not aware of changes that would impact self-hosted.

Which means we somehow have to figure out what is going wrong and how to reproduce this. Believe it or not, as an SDK/wizard engineer, debugging self-hosted is probably the most painful thing you can do at Sentry 😓 Anyway, we'll get there. Also, I'll reach out to the self-hosted team and ask if they can help.

@BYK
Copy link
Member

BYK commented Jan 22, 2025

Closing this in favor of the one opened over at self-hosted. (It is actually and issue with getsentry/sentry but self-hosted is much closer than the wizard repo).

@BYK BYK closed this as completed Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants