Commit 4e62bda
authored
## Problem
When `listOrganizations` fails with 403, the error shows:
```
ApiError: Failed to list organizations: 403 Forbidden
```
This happens during auto-detect (event view, issue view) when the token
lacks `org:read` scope. Affects **24 users**
([CLI-89](https://sentry.sentry.io/issues/7287298473/)).
## Fix
Enhanced the 403 error with token scope guidance:
```
Failed to list organizations: 403 Forbidden
Your auth token may lack the required 'org:read' scope.
Re-authenticate with: sentry auth login
Or check token scopes at: https://sentry.io/settings/auth-tokens/
```
1 parent a8e4fbb commit 4e62bda
1 file changed
+28
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
65 | 90 | | |
66 | 91 | | |
67 | 92 | | |
| |||
0 commit comments