Commit 907b61b
fix(SUPPORT-14907): log errors when page token lookup fails
Previously, exceptions during page token lookup were silently swallowed,
causing the component to fall back to user token without any indication
of what went wrong. This led to confusing 403 Forbidden errors when the
user token lacked permissions for page insights.
Changes:
- Replace swallow-exceptions macro with try-with-warning that logs errors
- Add detailed error message when both /me/accounts and page details fail
- Only attempt page details API if accounts list lookup didn't find token
- Improve logging to help diagnose token permission issues
Co-Authored-By: Zora Jelínková <zora.jelinkova@keboola.com>1 parent d6f7cc3 commit 907b61b
1 file changed
Lines changed: 20 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
| |||
0 commit comments