You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing info about sourcemaps explain command in Troubleshooting Source Maps #6573
The first paragraph of the page Troubleshooting Source Maps explain that there is a sentry-cli sourcemaps explain command to help us debug our sourcemaps. Excellent, but when trying the command, several things are missing:
$ sentry-cli.exe sourcemaps explain 836b6b53b84e4c19973de8f3f80c3481
error: An organization slug is required (provide with --org)
Ok, I'll add my org:
$ sentry-cli.exe sourcemaps explain 836b6b53b84e4c19973de8f3f80c3481 --org XXX
error: A project slug is required
Ok, I'll add my project slug, but where to find it ? I try with the project id:
sentry-cli.exe sourcemaps explain 836b6b53b84e4c19973de8f3f80c3481 --org XXX --project 4504758654****
error: API request failed
caused by: sentry reported an error: You do not have permission to perform this action. (http status: 403)
Hum, ok, let's try with the project name:
sentry-cli.exe sourcemaps explain 836b6b53b84e4c19973de8f3f80c3481 --org XXX --project YYY-frontend
error: API request failed
caused by: sentry reported an error: You do not have permission to perform this action. (http status: 403)
So I have no idea if my project slug is wrong, or my Sentry CLI token doesn't have enough permissions (they are org:read, project:releases)
Suggested Solution
Please provide all parameters in the documentation example and the way to get the project slug.
Please also provide the permissions required to execute this command.
Maybe the result of the command should specify if it is a permission issue on this specific project/org, or if the token doesn't have the right scopes.
I finally re-try with another token with a much wider scope (event:admin, event:read, member:read, org:read, project:read, project:releases, team:read, event:write, project:write, org:write, org:integrations) and it works.
I generally understand that from just looking at the linked "Troubleshooting Source Maps" page, it might appear confusing which parameters are missing or why you got this permissions error. However, the second paragraph links to the installation and configuration guide of the Sentry CLI, where everything is explained.
I realize this link is easy to miss so we could probably make it more prominent. Is this what you'd expect from this page?
I'd just argue that we cannot easily put everything necessary into this page because there are different ways how to set up and use the CLI. For instance, you don't have to specify the org and project slug every time. You can also put it into a .sentryclirc file, as described here.
Thanks for the explanations. I understood why you don't want to add the organization and project parameters in the doc, as they can be configured other ways, and the output of the CLI is sufficient to understood how to fix that.
I nevertheless think that the documentation should specify with scopes are required for this specific actions.
It could even be better if the endpoint called by the CLI will respond with something like:
You do not have permission to perform this action. Required scopes: event:admin, *** (http status: 403)
If you think the documentation is fine like that, you can close this ticket.
Thanks for getting back to me. I couldn't find the necessary scopes myself in a quick search so I think we should improve the documentation around this.
Tagging @kamilogorek, do you think we should adjust the suggested scopes here? Or otherwise here?
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 label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
The sourcemaps explain command is deprecated. We should replace the documentation of sourcemaps explain with the debugger modal documentation that will be added when getsentry/self-hosted#3309 is implemented.
Activity
getsantry commentedon Mar 31, 2023
Assigning to @getsentry/support for routing, due by Friday, March 31st at 5:00 pm (sfo). ⏲️
slestang commentedon Mar 31, 2023
I finally re-try with another token with a much wider scope (
event:admin, event:read, member:read, org:read, project:read, project:releases, team:read, event:write, project:write, org:write, org:integrations) and it works.getsantry commentedon Apr 2, 2023
Routing to @getsentry/team-web-sdk-frontend for triage, due by Tuesday, April 4th at 17:00 (vie). ⏲️
Lms24 commentedon Apr 3, 2023
Hi @slestang thanks for writing in!
I generally understand that from just looking at the linked "Troubleshooting Source Maps" page, it might appear confusing which parameters are missing or why you got this permissions error. However, the second paragraph links to the installation and configuration guide of the Sentry CLI, where everything is explained.
I realize this link is easy to miss so we could probably make it more prominent. Is this what you'd expect from this page?
I'd just argue that we cannot easily put everything necessary into this page because there are different ways how to set up and use the CLI. For instance, you don't have to specify the org and project slug every time. You can also put it into a
.sentryclircfile, as described here.slestang commentedon Apr 3, 2023
Hi @Lms24,
Thanks for the explanations. I understood why you don't want to add the organization and project parameters in the doc, as they can be configured other ways, and the output of the CLI is sufficient to understood how to fix that.
I nevertheless think that the documentation should specify with scopes are required for this specific actions.
It could even be better if the endpoint called by the CLI will respond with something like:
You do not have permission to perform this action. Required scopes: event:admin, *** (http status: 403)If you think the documentation is fine like that, you can close this ticket.
Lms24 commentedon Apr 3, 2023
Thanks for getting back to me. I couldn't find the necessary scopes myself in a quick search so I think we should improve the documentation around this.
Tagging @kamilogorek, do you think we should adjust the suggested scopes here? Or otherwise here?
kamilogorek commentedon Apr 3, 2023
I'd add the note regarding scope requirement to the troubleshooting page.
github-actions commentedon Apr 25, 2023
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 label it
Status: BacklogorStatus: In Progress, I will leave it alone ... forever!"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
szokeasaurusrex commentedon Apr 19, 2024
The
sourcemaps explaincommand is deprecated. We should replace the documentation ofsourcemaps explainwith the debugger modal documentation that will be added when getsentry/self-hosted#3309 is implemented.