-
-
Notifications
You must be signed in to change notification settings - Fork 221
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 Upload Source Maps Despite Following Documentation with Remix #2126
Comments
In my case, source map files were uploaded to Sentry, but errors were not captured because sentry-cli inject command added some code along with debug IDs to all files in the './dist' folder. I then migrated the Sentry SDK from version 7 to 8, and it worked for me. However, it should have worked with version 7, as migrating to version 8 wasn't easy due to the major changes involved. |
Hi @ishaank15, we are currently doing a company-wide HackWeek. We will get back to you early next week. In the meantime, it would be helpful if you could describe the exact steps you are taking, and the exact errors (full logs if possible) you are receiving on each step. If you can additionally provide a reproduction, that would help us greatly. |
Hey @ishaank15, I was able to look into your issue a bit more today. In order to help you I need two pieces of information:
I will be happy to assist further once you have provided this information. |
Hey @szokeasaurusrex
Using SaaS
|
Hi @ishaank15, I am not seeing any Debug IDs in the event either of the event payloads you linked. The missing Debug IDs can explain the behavior you are observing. In the first error, stack traces are likely visible because the source map could be located based on the release and file name; in the second error, this matching appears to have failed. This might be because the path is different on the server than in the uploaded source bundle. Most likely, the reason why the Debug IDs are missing from the event is because you deployed the non-injected code. For sourcemaps to work properly, you need to run My recommendation to solve your problem would be to re-install the Remix SDK with the Sentry wizard. The Sentry wizard will automatically configure your build process to upload sourcemaps to Sentry when building your project. That way, you do not have to manually inject or upload sourcemaps with Sentry CLI. Please let me know whether that fixes your problem. If you still are having problems, I am happy to help. |
I have trie both the ways, with sentry-cli and remix sdk, but got unlucky with them. It's surprising how sometimes it detects say x files and then next time rerunning it detects only half of them. Let me know if there is a way to connect and close this. I am eager to know the cause. |
Have you followed the process described here by running the following? npx @sentry/wizard@latest -i remix |
Looks like |
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 "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Description:
We are encountering issues with uploading our source maps to Sentry, despite following the official documentation and ensuring that our setup is correct. We are using the sentry-cli tool and have integrated it into our build and deployment pipeline. However, we continue to face errors related to Debug IDs and the source maps not being correctly processed.
Steps Taken:
Source Maps Injection:
We are using the following command to inject Debug IDs and upload source maps:
sentry-cli sourcemaps inject --org <org-name> --project <project-name> ./public/**/*.map && sentry-cli sourcemaps upload --org <org-name> --project <project-name> ./public/**/*.map
This command is supposed to inject Debug IDs and upload the source maps for the project files within the public folder, including subdirectories.
Deployment:
We ensure that the same build used to upload source maps is deployed to production without any modifications.
Result:
Despite following the documentation, we are encountering the following errors:
Expected Behavior:
The source maps should be correctly uploaded to Sentry and linked to our production errors.
Debug IDs should be properly injected into the JavaScript files and matched with the uploaded source maps.
Actual Behavior:
Source maps either fail to upload, or we receive errors related to missing Debug IDs or mismatches between the uploaded files and the deployed ones.
Sentry is unable to map the errors to the original source files.
Additional Information:
We are using sentry-cli version: [Your CLI Version]
The issue occurs consistently across multiple builds and deployments.
We have verified that the source maps are available in the deployment and are being referenced correctly in our JavaScript bundles.
Request:
Please assist us in troubleshooting this issue. We would like guidance on:
Ensuring that Debug IDs are correctly injected and uploaded.
Properly associating the uploaded source maps with our production events.
Any additional steps or configurations we might have missed that could be causing the mismatch.
Thank you in advance for your assistance!
The text was updated successfully, but these errors were encountered: